From 39f70772e05892ba97f78e6a375ab4a6b1930ccc Mon Sep 17 00:00:00 2001 From: Christian Pointner Date: Thu, 29 Nov 2018 22:40:15 +0100 Subject: added feather32u4lora board --- defines.mk | 13 +++++++++++++ lib/led.c | 4 ++-- usb-lora/Makefile | 2 +- 3 files changed, 16 insertions(+), 3 deletions(-) diff --git a/defines.mk b/defines.mk index 3cb82db..f04496f 100644 --- a/defines.mk +++ b/defines.mk @@ -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 diff --git a/lib/led.c b/lib/led.c index 192eb68..3949623 100644 --- a/lib/led.c +++ b/lib/led.c @@ -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 -- cgit v1.2.3