Bootloader for 9XE
This commit is contained in:
@@ -124,6 +124,10 @@ else
|
|||||||
CPPDEFS += -DREV4a
|
CPPDEFS += -DREV4a
|
||||||
else ifeq ($(PCBREV), REVPLUS)
|
else ifeq ($(PCBREV), REVPLUS)
|
||||||
CPPDEFS += -DREVPLUS
|
CPPDEFS += -DREVPLUS
|
||||||
|
HAPTIC = YES
|
||||||
|
else ifeq ($(PCBREV), REV9E)
|
||||||
|
CPPDEFS += -DREVPLUS -DREV9E
|
||||||
|
HAPTIC = YES
|
||||||
else
|
else
|
||||||
CPPDEFS += -DREV4
|
CPPDEFS += -DREV4
|
||||||
endif
|
endif
|
||||||
@@ -178,6 +182,10 @@ CPPSRC = ../targets/taranis/lcd_driver.cpp \
|
|||||||
../strhelpers.cpp \
|
../strhelpers.cpp \
|
||||||
boot.cpp
|
boot.cpp
|
||||||
|
|
||||||
|
ifeq ($(PCBREV), REV9E)
|
||||||
|
CPPSRC += ../targets/taranis/rotenc_driver.cpp
|
||||||
|
endif
|
||||||
|
|
||||||
# List ASM source files here
|
# 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
|
ASRC = ../targets/taranis/STM32F2xx_StdPeriph_Lib_V1.1.0/Libraries/CMSIS/Device/ST/STM32F2xx/Source/Templates/gcc_ride7/startup_stm32f2xx.s
|
||||||
|
|
||||||
|
|||||||
@@ -174,9 +174,9 @@ uint32_t readTrims(void);
|
|||||||
|
|
||||||
#if defined(REV9E)
|
#if defined(REV9E)
|
||||||
// Rotary Encoder driver
|
// Rotary Encoder driver
|
||||||
void rotencInit();
|
void rotencInit(void);
|
||||||
void rotencEnd();
|
void rotencEnd(void);
|
||||||
void checkRotaryEncoder();
|
void checkRotaryEncoder(void);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
// WDT driver
|
// WDT driver
|
||||||
|
|||||||
@@ -145,7 +145,7 @@ void readKeysAndTrims()
|
|||||||
|
|
||||||
#if defined(REV9E)
|
#if defined(REV9E)
|
||||||
static rotenc_t rePreviousValue;
|
static rotenc_t rePreviousValue;
|
||||||
rotenc_t reNewValue = (x9de_rotenc / ROTARY_ENCODER_GRANULARITY);
|
rotenc_t reNewValue = (x9de_rotenc / 2);
|
||||||
int8_t scrollRE = reNewValue - rePreviousValue;
|
int8_t scrollRE = reNewValue - rePreviousValue;
|
||||||
if (scrollRE) {
|
if (scrollRE) {
|
||||||
rePreviousValue = reNewValue;
|
rePreviousValue = reNewValue;
|
||||||
|
|||||||
@@ -44,7 +44,6 @@ static void Delay(uint32_t ms)
|
|||||||
}
|
}
|
||||||
|
|
||||||
#if defined(REVPLUS)
|
#if defined(REVPLUS)
|
||||||
static void LCD_Hardware_Init() ;
|
|
||||||
|
|
||||||
// New hardware SPI driver for LCD
|
// New hardware SPI driver for LCD
|
||||||
void initLcdSpi()
|
void initLcdSpi()
|
||||||
|
|||||||
Reference in New Issue
Block a user