Skip to content

Commit

Permalink
Fix LED_INVERT option.
Browse files Browse the repository at this point in the history
Add ATtiny817 to pin_defs_x.h
  • Loading branch information
WestfW committed Sep 23, 2019
1 parent 142c9f7 commit 9fde01e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions optiboot/bootloaders/optiboot/parse_options.mk
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ dummy = FORCE
endif

HELPTEXT += "Option LED_INVERT=1 - Invert the 'on' state of the LED\n"
ifdef LED_INVERT=1
ifdef LED_INVERT
ifneq ($(LED_INVERT), 0)
LEDINV_CMD = -DLED_INVERT=1
endif
Expand Down Expand Up @@ -137,7 +137,7 @@ endif
HELPTEXT += "Option AVR_FREQ=<n> - Clock rate of AVR CPU\n"


LED_OPTIONS = $(LED_START_FLASHES_CMD) $(LED_DATA_FLASH_CMD) $(LED_CMD) $(LED_START_ON_CMD)
LED_OPTIONS = $(LED_START_FLASHES_CMD) $(LED_DATA_FLASH_CMD) $(LED_CMD) $(LED_START_ON_CMD) $(LEDINV_CMD)
CPU_OPTIONS = $(RESETPIN_CMD) $(TIMEOUT_CMD) $(FCPU_CMD)
COMMON_OPTIONS = $(BIGBOOT_CMD) $(APPSPM_CMD) $(VERSION_CMD)
COMMON_OPTIONS += $(SUPPORT_EEPROM_CMD)
Expand Down
2 changes: 1 addition & 1 deletion optiboot/bootloaders/optiboot/pin_defs_x.h
Original file line number Diff line number Diff line change
Expand Up @@ -779,7 +779,7 @@
defined(__AVR_ATtiny406__) || defined(__AVR_ATtiny3216__) || \
defined(__AVR_ATtiny816__) || defined(__AVR_ATtiny416__) || \
defined(__AVR_ATtiny1617__) || defined(__AVR_ATtiny3217__) || \
defined(__AVR_ATtiny1607__)
defined(__AVR_ATtiny1607__) || defined(__AVR_ATtiny817__)
#define MYPMUX PORTMUX.CTRLB
# if (UARTTX == B2)
# define UART_NAME "B2"
Expand Down

0 comments on commit 9fde01e

Please sign in to comment.