diff options
author | Christian Pointner <equinox@spreadspace.org> | 2018-11-29 22:40:15 +0100 |
---|---|---|
committer | Christian Pointner <equinox@spreadspace.org> | 2018-11-29 22:40:15 +0100 |
commit | 39f70772e05892ba97f78e6a375ab4a6b1930ccc (patch) | |
tree | c12190e2f95f6414efe4321ef45e6652a273fec0 | |
parent | remove -fpack-struct since this does nothing on AVR anyway (8bit platform) (diff) |
added feather32u4lora board
-rw-r--r-- | defines.mk | 13 | ||||
-rw-r--r-- | lib/led.c | 4 | ||||
-rw-r--r-- | usb-lora/Makefile | 2 |
3 files changed, 16 insertions, 3 deletions
@@ -145,6 +145,19 @@ ifeq ($(BOARD_TYPE),feather32u4) PROG_TYPE := avr109 AVRDUDE_PORT := /dev/ttyACM0 LUFA_BOARD = NONE + ARDUINO_PINS = leonardo +endif +ifeq ($(BOARD_TYPE),feather32u4lora) + MCU := atmega32u4 + ARCH = AVR8 + F_CPU := 8000000 + F_USB = $(F_CPU) + PROG := avrdude + UPLOAD_RATE := 57600 + PROG_TYPE := avr109 + AVRDUDE_PORT := /dev/ttyACM0 + LUFA_BOARD = NONE + ARDUINO_PINS = leonardo endif ifeq ($(BOARD_TYPE),elecrow32u4lora) MCU := atmega32u4 @@ -29,7 +29,7 @@ #define NUM_LEDS 2 #elif defined(__BOARD_teensy1__) || defined(__BOARD_teensy1pp__) || defined(__BOARD_teensy2__) || defined(__BOARD_teensy2pp__) || \ defined(__BOARD_arduinoNano__) || defined(__BOARD_arduinoNG__) || defined(__BOARD_arduino2009v2__) || defined(__BOARD_arduino2009__) || \ - defined(__BOARD_arduino10000__) || defined(__BOARD_arduinoUno__) || defined(__BOARD_feather32u4__) || \ + defined(__BOARD_arduino10000__) || defined(__BOARD_arduinoUno__) || defined(__BOARD_feather32u4__) || defined(__BOARD_feather32u4lora__) || \ defined(__BOARD_hhd70dongle__) || defined(__BOARD_rda1846dongle__) || defined(__BOARD_culV3__) || \ defined(__BOARD_slowpandongle1__) || defined(__BOARD_slowpandongle2__) || defined(__BOARD_teenstep__) || \ defined(__BOARD_rhmixxx__) || defined(__BOARD_digispark__) || defined(__BOARD_robotdynMega2560__) @@ -62,7 +62,7 @@ #define LED2_PINNUM 6 #endif -#if defined(__BOARD_feather32u4__) +#if defined(__BOARD_feather32u4__) || defined(__BOARD_feather32u4lora__) #define LED_PORT PORTC #define LED_DDR DDRC #define LED_PINNUM 7 diff --git a/usb-lora/Makefile b/usb-lora/Makefile index 07e3a9a..8e2c751 100644 --- a/usb-lora/Makefile +++ b/usb-lora/Makefile @@ -21,7 +21,7 @@ ## NAME := usb-lora -BOARD_TYPE := elecrow32u4lora +BOARD_TYPE := feather32u4lora CXX_OBJ := $(NAME).o LIBS := util led lufa-descriptor-usbserial usbio EXTERNAL_LIBS := lufa radiohead |