SAM3X-EK LEDs support package.
Copyright (c) 2011-2018 Microchip Technology Inc. and its subsidiaries.
Data Structures | |
struct | tLED_DESCRIPTOR |
Macros | |
#define | ACTIVE_LEVEL_IS_HIGH 1 |
#define | INSERT_LED_DESCRIPTOR(LED_NO, unused) |
Functions | |
void | LED_Off (uint32_t led_gpio) |
Turns off the specified LEDs. More... | |
void | LED_On (uint32_t led_gpio) |
Turns on the specified LEDs. More... | |
Variables | |
static tLED_DESCRIPTOR | LED_DESCRIPTOR [BOARD_NUM_OF_LED] |
Hardware descriptors of all LEDs. More... | |
#define INSERT_LED_DESCRIPTOR | ( | LED_NO, | |
unused | |||
) |
void LED_Off | ( | uint32_t | led_gpio | ) |
Turns off the specified LEDs.
led_gpio | LED to turn off (LEDx_GPIO). |
References ACTIVE_LEVEL_IS_HIGH, BOARD_NUM_OF_LED, gpio_set_pin_high, and gpio_set_pin_low.
Referenced by ui_com_close(), ui_com_rx_stop(), ui_com_tx_stop(), ui_init(), ui_powerdown(), and ui_process().
void LED_On | ( | uint32_t | led_gpio | ) |
Turns on the specified LEDs.
led_gpio | LED to turn on (LEDx_GPIO). |
References ACTIVE_LEVEL_IS_HIGH, BOARD_NUM_OF_LED, gpio_set_pin_high, and gpio_set_pin_low.
Referenced by ui_com_open(), ui_com_rx_start(), ui_com_tx_start(), ui_init(), ui_process(), and ui_wakeup().
|
static |
Hardware descriptors of all LEDs.