SAM4S-EK2 LEDs support package.
Copyright (c) 2014-2018 Microchip Technology Inc. and its subsidiaries.
#include "gpio.h"
Macros | |
#define | LED_Toggle(led_gpio) gpio_toggle_pin(led_gpio) |
Toggles the specified LEDs. More... | |
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... | |
#define LED_Toggle | ( | led_gpio | ) | gpio_toggle_pin(led_gpio) |
Toggles the specified LEDs.
led_gpio | LED to toggle (LEDx_GPIO). |
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.
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.