Microchip® Advanced Software Framework

led.h File Reference

ATMEGA256RFR2 Xplained Pro board LEDs support package.

This file contains definitions and services related to the LED features of the ATMEGA256RFR2 XPLAINED PRO board.

To use this board, define BOARD=ATMEGA256RFR2_XPLAINED_PRO.

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

#include "gpio.h"

Macros

#define LED_Off(led_gpio)   ioport_set_value(led_gpio, 1)
 Turns off the specified LEDs. More...
 
#define LED_On(led_gpio)   ioport_set_value(led_gpio, 0)
 Turns on the specified LEDs. More...
 
#define LED_Toggle(led_gpio)   ioport_toggle_pin(led_gpio)
 Toggles the specified LEDs. More...
 

#define LED_Off (   led_gpio)    ioport_set_value(led_gpio, 1)

Turns off the specified LEDs.

Parameters
led_gpioLED to turn off (LEDx_GPIO).
Note
The pins of the specified LEDs are set to GPIO output mode.
#define LED_On (   led_gpio)    ioport_set_value(led_gpio, 0)

Turns on the specified LEDs.

Parameters
led_gpioLED to turn on (LEDx_GPIO).
Note
The pins of the specified LEDs are set to GPIO output mode.
#define LED_Toggle (   led_gpio)    ioport_toggle_pin(led_gpio)

Toggles the specified LEDs.

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