led.h

Go to the documentation of this file.
00001 #ifndef _led_h_
00002 #define _led_h_
00003 
00004 #include <avr32/ap7000.h>
00005 #include "../pio/pio.h"
00006 
00007 #define LEDPORT_ADDR AVR32_PIOC_ADDRESS
00008 #define LEDPORT_START 0
00009 #define RGBPORT_ADDR AVR32_PIOC_ADDRESS
00010 #define RGBPORT_START 8
00011 
00012 #define LED_SUCCESS 0
00013 #define LED_INVALID_ARGUMENT -1
00014 
00015 /* rgb positions */
00016 #define LEFT 0
00017 #define RIGHT 1
00018 
00019 /* colors */
00020 #define BLACK 0x00
00021 #define RED 0x01
00022 #define GREEN 0x04
00023 #define YELLOW 0x05
00024 #define BLUE 0x10
00025 #define PURPLE 0x11
00026 #define LIGHT_BLUE 0x14
00027 #define WHITE 0x15
00028 
00029 /* leds functions */
00030 
00031 int led_leds_init( void );
00032 int led_set_leds(char mask);
00033 int led_clear_leds(char mask);
00034 
00035 /* rgb leds functions */
00036 int led_rgb_init( void );
00037 int led_set_rgb(unsigned int position, unsigned char colour);
00038 int led_clear_rgb( unsigned int position);
00039 
00040 #endif

Generated on Thu May 10 14:14:48 2007 for AVR321000 Communication with the AVR32 USART by  doxygen 1.5.1