Bootloader for 9XE

This commit is contained in:
Damjan Adamic
2014-12-06 19:16:05 +01:00
parent 8854ccd231
commit e9f8b14f8b
4 changed files with 12 additions and 5 deletions
+8
View File
@@ -124,6 +124,10 @@ else
CPPDEFS += -DREV4a
else ifeq ($(PCBREV), REVPLUS)
CPPDEFS += -DREVPLUS
HAPTIC = YES
else ifeq ($(PCBREV), REV9E)
CPPDEFS += -DREVPLUS -DREV9E
HAPTIC = YES
else
CPPDEFS += -DREV4
endif
@@ -178,6 +182,10 @@ CPPSRC = ../targets/taranis/lcd_driver.cpp \
../strhelpers.cpp \
boot.cpp
ifeq ($(PCBREV), REV9E)
CPPSRC += ../targets/taranis/rotenc_driver.cpp
endif
# List ASM source files here
ASRC = ../targets/taranis/STM32F2xx_StdPeriph_Lib_V1.1.0/Libraries/CMSIS/Device/ST/STM32F2xx/Source/Templates/gcc_ride7/startup_stm32f2xx.s
+3 -3
View File
@@ -174,9 +174,9 @@ uint32_t readTrims(void);
#if defined(REV9E)
// Rotary Encoder driver
void rotencInit();
void rotencEnd();
void checkRotaryEncoder();
void rotencInit(void);
void rotencEnd(void);
void checkRotaryEncoder(void);
#endif
// WDT driver
+1 -1
View File
@@ -145,7 +145,7 @@ void readKeysAndTrims()
#if defined(REV9E)
static rotenc_t rePreviousValue;
rotenc_t reNewValue = (x9de_rotenc / ROTARY_ENCODER_GRANULARITY);
rotenc_t reNewValue = (x9de_rotenc / 2);
int8_t scrollRE = reNewValue - rePreviousValue;
if (scrollRE) {
rePreviousValue = reNewValue;
-1
View File
@@ -44,7 +44,6 @@ static void Delay(uint32_t ms)
}
#if defined(REVPLUS)
static void LCD_Hardware_Init() ;
// New hardware SPI driver for LCD
void initLcdSpi()