summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--lib/led.c12
1 files changed, 10 insertions, 2 deletions
diff --git a/lib/led.c b/lib/led.c
index 593d97b..fd2754e 100644
--- a/lib/led.c
+++ b/lib/led.c
@@ -29,13 +29,15 @@
#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__)
+ defined(__BOARD_slowpandongle1__) || defined(__BOARD_slowpandongle2__) || defined(__BOARD_teenstep__) || \
+ defined(__BOARD_rhmixxx__)
#define NUM_LEDS 1
#else
#define NUM_LEDS 0
#endif
-#if defined(__BOARD_teensy1__) || defined(__BOARD_teensy1pp__) || defined(__BOARD_minimus__) || defined(__BOARD_minimus32__)
+#if defined(__BOARD_teensy1__) || defined(__BOARD_teensy1pp__) || defined(__BOARD_minimus__) || defined(__BOARD_minimus32__) || \
+ defined(__BOARD_rhmixxx__)
#define LED_DIR 0
#else
#define LED_DIR 1
@@ -76,6 +78,12 @@
#define LED_PINNUM 5
#endif
+#if defined(__BOARD_rhmixxx__)
+#define LED_PORT PORTE
+#define LED_DDR DDRE
+#define LED_PINNUM 0
+#endif
+
void led_init(void)
{
#if NUM_LEDS >= 1