Microchip® Advanced Software Framework

led.h File Reference

SAM4S Xplained Pro LEDs support package.

Copyright (c) 2014-2018 Microchip Technology Inc. and its subsidiaries.

#include "gpio.h"

Macros

#define LED_Off(led)   ioport_set_pin_level(led, IOPORT_PIN_LEVEL_HIGH)
 Turns off the specified LEDs. More...
 
#define LED_On(led)   ioport_set_pin_level(led, IOPORT_PIN_LEVEL_LOW)
 Turns on the specified LEDs. More...
 
#define LED_Toggle(led)   ioport_toggle_pin_level(led)
 Toggles the specified LEDs. More...
 

#define LED_Off (   led)    ioport_set_pin_level(led, IOPORT_PIN_LEVEL_HIGH)

Turns off the specified LEDs.

Parameters
ledLED to turn off (LEDx).
Note
The pins of the specified LEDs are set to GPIO output mode.

Referenced by main(), rx_data_led_off_cb(), and usr_mlme_associate_conf().

#define LED_On (   led)    ioport_set_pin_level(led, IOPORT_PIN_LEVEL_LOW)

Turns on the specified LEDs.

Parameters
ledLED to turn on (LEDx).
Note
The pins of the specified LEDs are set to GPIO output mode.

Referenced by main(), usr_mcps_data_ind(), and usr_mlme_associate_conf().

#define LED_Toggle (   led)    ioport_toggle_pin_level(led)

Toggles the specified LEDs.

Parameters
ledLED to toggle (LEDx).
Note
The pins of the specified LEDs are set to GPIO output mode.

Referenced by app_alert(), and network_search_indication_cb().