Atmel Software Framework

led.h File Reference

SAMG53-XPLAINED-PRO LEDs support package.

Copyright (c) 2014-2015 Atmel Corporation. All rights reserved.

#include "compiler.h"
#include "ioport.h"

Macros

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

#define LED_Off (   led)    ioport_set_pin_level(led##_GPIO, led##_INACTIVE_LEVEL)

Turns off the specified LEDs.

Parameters
ledLED to turn off (LEDx_GPIO).
Note
The pins of the specified LEDs are set to GPIO output mode.
#define LED_On (   led)    ioport_set_pin_level(led##_GPIO, led##_ACTIVE_LEVEL)

Turns on the specified LEDs.

Parameters
ledLED to turn on (LEDx_GPIO).
Note
The pins of the specified LEDs are set to GPIO output mode.
#define LED_Toggle (   led)    ioport_toggle_pin_level(led##_GPIO)

Toggles the specified LEDs.

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