MAV'RIC
Functions
led.c File Reference

AT32UC3C UC3C_EK board LEDs support package. More...

#include "compiler.h"
#include "led.h"
Include dependency graph for led.c:

Functions

void LED_Off (U32 leds)
 Turns off the specified LEDs. More...
 
void LED_On (U32 leds)
 Turns on the specified LEDs. More...
 
void LED_Toggle (U32 leds)
 Toggles the specified LEDs. More...
 
U8 LED_Get_Intensity (U32 led)
 Gets the intensity of the specified LED. More...
 

Detailed Description

AT32UC3C UC3C_EK board LEDs support package.

This file contains definitions and services related to the LED features of the UC3C-EK board.

Author
Atmel Corporation: http://www.atmel.com
Support and FAQ: http://support.atmel.no/

Function Documentation

U8 LED_Get_Intensity ( U32  led)

Gets the intensity of the specified LED.

Parameters
ledLED 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.
void LED_Off ( U32  leds)

Turns off the specified LEDs.

Parameters
ledsLEDs to turn off (1 bit per LED).
Note
The pins of the specified LEDs are set to GPIO output mode.
void LED_On ( U32  leds)

Turns on the specified LEDs.

Parameters
ledsLEDs 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
ledsLEDs to toggle (1 bit per LED).
Note
The pins of the specified LEDs are set to GPIO output mode.