Skip to content

Commit

Permalink
fix: bootloader
Browse files Browse the repository at this point in the history
  • Loading branch information
3djc committed May 26, 2024
1 parent 6ef2fad commit d91a275
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 3 deletions.
4 changes: 4 additions & 0 deletions radio/src/targets/common/arm/stm32/bootloader/boot.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -207,9 +207,13 @@ void bootloaderInitApp()
LL_AHB1_GRP1_EnableClock(LCD_RCC_AHB1Periph);
#if defined(LCD_RCC_APB2Periph)
LL_APB2_GRP1_EnableClock(LCD_RCC_APB2Periph);
#endif
#if defined(LCD_RCC_APB1Periph)
LL_APB1_GRP1_EnableClock(LCD_RCC_APB1Periph);
#endif
LL_APB2_GRP1_EnableClock(LL_APB2_GRP1_PERIPH_SYSCFG);


#if defined(HAVE_BOARD_BOOTLOADER_INIT)
boardBootloaderInit();
#endif
Expand Down
4 changes: 1 addition & 3 deletions radio/src/targets/taranis/board.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -71,9 +71,7 @@ void boardInit()
{
LL_APB1_GRP1_EnableClock(AUDIO_RCC_APB1Periph);
LL_APB2_GRP1_EnableClock(LL_APB2_GRP1_PERIPH_SYSCFG);
#if defined(LCD_RCC_APB1Periph)
LL_APB1_GRP1_EnableClock(LCD_RCC_APB1Periph); //X9D uses soft SPI
#endif
LL_APB1_GRP1_EnableClock(LCD_RCC_APB1Periph);

#if defined(BLUETOOTH) && !defined(PCBX9E)
bluetoothInit(BLUETOOTH_DEFAULT_BAUDRATE, true);
Expand Down
1 change: 1 addition & 0 deletions radio/src/targets/taranis/hal.h
Original file line number Diff line number Diff line change
Expand Up @@ -2443,6 +2443,7 @@
#define LCD_GPIO_AF GPIO_AF6
#else
#define LCD_RCC_AHB1Periph 0
#define LCD_RCC_APB1Periph 0
// Soft SPI: these pins are connected to SPI periph on STM32F205
#define LCD_MOSI_GPIO GPIO_PIN(GPIOD, 10) // PD.10
#define LCD_CLK_GPIO GPIO_PIN(GPIOD, 11) // PD.11
Expand Down

0 comments on commit d91a275

Please sign in to comment.