From 10859a834fbc1f3a125db09876b8adf71b147968 Mon Sep 17 00:00:00 2001 From: Christian Pointner Date: Sat, 17 Aug 2013 18:55:38 +0000 Subject: upgraded avr utils git-svn-id: https://svn.spreadspace.org/mur.sat@831 7de4ea59-55d0-425e-a1af-a3118ea81d4c --- software/avr.lib/led.c | 18 +++++++++++++----- 1 file changed, 13 insertions(+), 5 deletions(-) (limited to 'software/avr.lib/led.c') diff --git a/software/avr.lib/led.c b/software/avr.lib/led.c index 4e08d6f..593d97b 100644 --- a/software/avr.lib/led.c +++ b/software/avr.lib/led.c @@ -26,9 +26,10 @@ #if defined(__BOARD_minimus__) || defined(__BOARD_minimus32__) #define NUM_LEDS 2 -#elif defined(__BOARD_teensy1__) || defined(__BOARD_teensy1pp__) || defined(__BOARD_teensy2__) || defined(__BOARD_teensy2pp__) \ - || defined(__BOARD_arduinoNG__) || defined(__BOARD_arduino2009v2__) || defined(__BOARD_arduino2009__) || defined(__BOARD_arduino10000__) \ - || defined(__BOARD_hhd70dongle__) || defined(__BOARD_rda1846dongle__) || defined(__BOARD_culV3__) +#elif defined(__BOARD_teensy1__) || defined(__BOARD_teensy1pp__) || defined(__BOARD_teensy2__) || defined(__BOARD_teensy2pp__) || \ + defined(__BOARD_arduinoNG__) || defined(__BOARD_arduino2009v2__) || defined(__BOARD_arduino2009__) || defined(__BOARD_arduino10000__) || \ + defined(__BOARD_hhd70dongle__) || defined(__BOARD_rda1846dongle__) || defined(__BOARD_culV3__) || \ + defined(__BOARD_slowpandongle1__) || defined(__BOARD_slowpandongle2__) || defined(__BOARD_teenstep__) #define NUM_LEDS 1 #else #define NUM_LEDS 0 @@ -40,7 +41,8 @@ #define LED_DIR 1 #endif -#if defined(__BOARD_teensy1__) || defined(__BOARD_teensy1pp__) || defined(__BOARD_teensy2__) || defined(__BOARD_teensy2pp__) +#if defined(__BOARD_teensy1__) || defined(__BOARD_teensy1pp__) || defined(__BOARD_teensy2__) || defined(__BOARD_teensy2pp__) || \ + defined(__BOARD_teenstep__) #define LED_PORT PORTD #define LED_DDR DDRD #define LED_PINNUM 6 @@ -56,12 +58,18 @@ #define LED2_PINNUM 6 #endif -#if defined(__BOARD_hhd70dongle__) || defined(__BOARD_rda1846dongle__) || defined(__BOARD_culV3__) +#if defined(__BOARD_slowpandongle2__) || defined(__BOARD_hhd70dongle__) || defined(__BOARD_rda1846dongle__) || defined(__BOARD_culV3__) #define LED_PORT PORTE #define LED_DDR DDRE #define LED_PINNUM 6 #endif +#if defined(__BOARD_slowpandongle1__) +#define LED_PORT PORTC +#define LED_DDR DDRC +#define LED_PINNUM 2 +#endif + #if defined(__BOARD_arduino2009v2__) || defined(__BOARD_arduino2009__) || defined(__BOARD_arduino10000__) || defined(__BOARD_arduinoNG__) #define LED_PORT PORTB #define LED_DDR DDRB -- cgit v1.2.3