diff options
| author | Selene ToyKeeper | 2023-11-19 01:46:34 -0700 |
|---|---|---|
| committer | Selene ToyKeeper | 2023-11-19 01:46:34 -0700 |
| commit | 66b15ad887c2ae74bc7019c006549ac451557a6d (patch) | |
| tree | 016f7037daff65cdd7b3034726e509d0c132decc /fsm | |
| parent | missed a "include -> HWDEF_H" conversion earlier (diff) | |
| download | anduril-66b15ad887c2ae74bc7019c006549ac451557a6d.tar.gz anduril-66b15ad887c2ae74bc7019c006549ac451557a6d.tar.bz2 anduril-66b15ad887c2ae74bc7019c006549ac451557a6d.zip | |
temporary fix for aux LEDs on avrdd; needs proper refactoring
Diffstat (limited to 'fsm')
| -rw-r--r-- | fsm/misc.c | 9 |
1 files changed, 6 insertions, 3 deletions
@@ -118,7 +118,8 @@ uint8_t blink_num(uint8_t num) { #ifdef USE_INDICATOR_LED void indicator_led(uint8_t lvl) { switch (lvl) { - #ifdef AVRXMEGA3 // ATTINY816, 817, etc + // FIXME: move this logic to arch/* + #if (MCU==0x1616) || (MCU==0x32dd20) // ATTINY816, 817, etc case 0: // indicator off AUXLED_PORT.DIRSET = (1 << AUXLED_PIN); // set as output @@ -192,7 +193,8 @@ void indicator_led_auto() { void button_led_set(uint8_t lvl) { switch (lvl) { - #ifdef AVRXMEGA3 // ATTINY816, 817, etc + // FIXME: move this logic to arch/* + #if (MCU==0x1616) || (MCU==0x32dd20) // ATTINY816, 817, etc case 0: // LED off BUTTON_LED_PORT.DIRSET = (1 << BUTTON_LED_PIN); // set as output @@ -240,7 +242,8 @@ void rgb_led_set(uint8_t value) { uint8_t pin = pins[i]; switch (lvl) { - #ifdef AVRXMEGA3 // ATTINY816, 817, etc + // FIXME: move this logic to arch/* + #if (MCU==0x1616) || (MCU==0x32dd20) // ATTINY816, 817, etc case 0: // LED off AUXLED_RGB_PORT.DIRSET = (1 << pin); // set as output |
