diff options
author | Christian Pointner <equinox@spreadspace.org> | 2018-11-21 21:23:37 +0100 |
---|---|---|
committer | Christian Pointner <equinox@spreadspace.org> | 2018-11-21 21:23:37 +0100 |
commit | 3c5cce344ffd215478f82bfd17ad96b958babb00 (patch) | |
tree | 8e83152590fd017dcd94dee0705d49b01b2f3ee5 | |
parent | added support for Adafruit Feather 32u4 (diff) |
added elecrow 32u4 Lora board
-rw-r--r-- | defines.mk | 11 | ||||
-rw-r--r-- | lib/led.c | 6 | ||||
-rw-r--r-- | usb-led/Makefile | 2 |
3 files changed, 15 insertions, 4 deletions
@@ -146,6 +146,17 @@ ifeq ($(BOARD_TYPE),feather32u4) AVRDUDE_PORT := /dev/ttyACM0 LUFA_BOARD = NONE endif +ifeq ($(BOARD_TYPE),elecrow32u4lora) + MCU := atmega32u4 + ARCH = AVR8 + F_CPU := 16000000 + F_USB = $(F_CPU) + PROG := avrdude + UPLOAD_RATE := 57600 + PROG_TYPE := avr109 + AVRDUDE_PORT := /dev/ttyACM0 + LUFA_BOARD = NONE +endif ifeq ($(BOARD_TYPE),arduinoProMicro) MCU := atmega32u4 ARCH = AVR8 @@ -25,7 +25,7 @@ #include "led.h" -#if defined(__BOARD_minimus__) || defined(__BOARD_minimus32__) || defined(__BOARD_arduinoProMicro__) +#if defined(__BOARD_minimus__) || defined(__BOARD_minimus32__) || defined(__BOARD_arduinoProMicro__) || defined(__BOARD_elecrow32u4lora__) #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__) || \ @@ -39,7 +39,7 @@ #endif #if defined(__BOARD_teensy1__) || defined(__BOARD_teensy1pp__) || defined(__BOARD_minimus__) || defined(__BOARD_minimus32__) || \ - defined(__BOARD_rhmixxx__) || defined(__BOARD_arduinoProMicro__) + defined(__BOARD_rhmixxx__) || defined(__BOARD_arduinoProMicro__) || defined(__BOARD_elecrow32u4lora__) #define LED_DIR 0 #else #define LED_DIR 1 @@ -68,7 +68,7 @@ #define LED_PINNUM 7 #endif -#if defined(__BOARD_arduinoProMicro__) +#if defined(__BOARD_arduinoProMicro__) || defined(__BOARD_elecrow32u4lora__) #define LED_PORT PORTD #define LED_DDR DDRD #define LED_PINNUM 5 diff --git a/usb-led/Makefile b/usb-led/Makefile index 28cdf3a..13230c0 100644 --- a/usb-led/Makefile +++ b/usb-led/Makefile @@ -21,7 +21,7 @@ ## NAME := usb-led -BOARD_TYPE := feather32u4 +BOARD_TYPE := elecrow32u4lora OBJ := $(NAME).o LIBS := util led lufa-descriptor-usbserial usbio EXTERNAL_LIBS := lufa |