AT32UC3C UC3C_EK board LEDs support package.
More...
#include "compiler.h"
#include "led.h"
AT32UC3C UC3C_EK board LEDs support package.
This file contains definitions and services related to the LED features of the UC3C-EK board.
- Compiler: IAR EWAVR32 and GNU GCC for AVR32
- Supported devices: All AVR32 AT32UC3C devices can be used.
- AppNote:
- Author
- Atmel Corporation: http://www.atmel.com
Support and FAQ: http://support.atmel.no/
U8 LED_Get_Intensity |
( |
U32 |
led | ) |
|
Gets the intensity of the specified LED.
- Parameters
-
led | LED of which to get the intensity (1 bit per LED; only the least significant set bit is used). |
- Returns
- Intensity of the specified LED (0x00 to 0xFF).
- Warning
- The PWM channel of the specified LED is supposed to be used only by this module.
- Note
- The GPIO pin configuration of all LEDs is left unchanged.
Turns off the specified LEDs.
- Parameters
-
leds | LEDs to turn off (1 bit per LED). |
- Note
- The pins of the specified LEDs are set to GPIO output mode.
Turns on the specified LEDs.
- Parameters
-
leds | LEDs to turn on (1 bit per LED). |
- Note
- The pins of the specified LEDs are set to GPIO output mode.
void LED_Toggle |
( |
U32 |
leds | ) |
|
Toggles the specified LEDs.
- Parameters
-
leds | LEDs to toggle (1 bit per LED). |
- Note
- The pins of the specified LEDs are set to GPIO output mode.