33 #include "lib/simEnvChange.h" 37 const struct simInterface leds_interface;
45 void leds_arch_init() {
48 gpio_hal_arch_register_pin_callback(COOJA_LED_GREEN_PIN, led_change_cb);
49 gpio_hal_arch_register_pin_callback(COOJA_LED_RED_PIN, led_change_cb);
50 gpio_hal_arch_register_pin_callback(COOJA_LED_YELLOW_PIN, led_change_cb);
54 doInterfaceActionsBeforeTick(
void)
59 doInterfaceActionsAfterTick(
void)
63 SIM_INTERFACE(leds_interface,
64 doInterfaceActionsBeforeTick,
65 doInterfaceActionsAfterTick);
67 const leds_t leds_arch_leds[] = {
69 .pin = COOJA_LED_GREEN_PIN,
70 .negative_logic =
false 73 .pin = COOJA_LED_RED_PIN,
74 .negative_logic =
false 77 .pin = COOJA_LED_YELLOW_PIN,
78 .negative_logic =
false leds_mask_t leds_get()
Get the status of LEDs.
A LED logical representation.
Header file for the LED HAL.
uint8_t leds_mask_t
An OR mask datatype to represents multiple LEDs.