added guhRF; added atmega256rfr2 support
This commit is contained in:
parent
9a3c6adf8d
commit
79df347afa
115 changed files with 13276 additions and 23 deletions
36
platform/RaspBee/dev/leds-arch.h
Normal file
36
platform/RaspBee/dev/leds-arch.h
Normal file
|
@ -0,0 +1,36 @@
|
|||
/*
|
||||
guhRF Platform has just one green LED on PIN E5
|
||||
|
||||
*/
|
||||
|
||||
#ifndef __LEDS_ARCH_H__
|
||||
#define __LEDS_ARCH_H__
|
||||
|
||||
#define LED_OUT PORTE
|
||||
|
||||
#define BIT_RED _BV(PE5)
|
||||
#define BIT_BLUE BIT_RED
|
||||
#define BIT_GREEN BIT_RED
|
||||
#define BIT_YELLOW BIT_RED
|
||||
|
||||
#define LED_GREEN_ON() LED_OUT &= ~BIT_GREEN
|
||||
#define LED_GREEN_OFF() LED_OUT |= BIT_GREEN
|
||||
#define LED_YELLOW_ON() LED_OUT &= ~BIT_YELLOW
|
||||
#define LED_YELLOW_OFF() LED_OUT |= BIT_YELLOW
|
||||
#define LED_RED_ON() LED_OUT &= ~BIT_RED
|
||||
#define LED_RED_OFF() LED_OUT |= BIT_RED
|
||||
|
||||
|
||||
#define LED_GREEN_TOGGLE() LED_OUT ^= BIT_GREEN
|
||||
#define LED_YELLOW_TOGGLE() LED_OUT ^= BIT_YELLOW
|
||||
#define LED_RED_TOGGLE() LED_OUT ^= BIT_RED
|
||||
|
||||
#define LEDS_ON() LED_OUT &= ~(BIT_BLUE | BIT_GREEN | BIT_RED)
|
||||
#define LEDS_OFF() LED_OUT |= (BIT_BLUE | BIT_GREEN | BIT_RED)
|
||||
|
||||
|
||||
void leds_arch_init(void);
|
||||
unsigned char leds_arch_get(void);
|
||||
void leds_arch_set(unsigned char leds);
|
||||
|
||||
#endif /* __LEDS_ARCH_H__ */
|
Loading…
Add table
Add a link
Reference in a new issue