Skip to content

Commit

Permalink
fix: Update for PL18
Browse files Browse the repository at this point in the history
  • Loading branch information
pfeerick committed Dec 9, 2023
1 parent eeee419 commit 171efef
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 6 deletions.
3 changes: 1 addition & 2 deletions radio/src/targets/pl18/board.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,6 @@ void delay_self(int count)
)
#define RCC_AHB1PeriphOther (AUDIO_RCC_AHB1Periph |\
TELEMETRY_RCC_AHB1Periph |\
TRAINER_RCC_AHB1Periph |\
HAPTIC_RCC_AHB1Periph |\
EXTMODULE_RCC_AHB1Periph \
)
Expand Down Expand Up @@ -123,7 +122,7 @@ void boardInit()
pwrInit();
boardInitModulePorts();

init_trainer();
board_trainer_init();
battery_charge_init();
flysky_gimbal_init();
timersInit();
Expand Down
3 changes: 0 additions & 3 deletions radio/src/targets/pl18/board.h
Original file line number Diff line number Diff line change
Expand Up @@ -239,9 +239,6 @@ void hapticOn(uint32_t pwmPercent);
#define DEBUG_BAUDRATE 115200
#define LUA_DEFAULT_BAUDRATE 115200

extern uint8_t currentTrainerMode;
void checkTrainerSettings();

// Touch panel driver
bool touchPanelEventOccured();
struct TouchState touchPanelRead();
Expand Down
1 change: 0 additions & 1 deletion radio/src/targets/pl18/hal.h
Original file line number Diff line number Diff line change
Expand Up @@ -653,7 +653,6 @@
#define EXTMODULE_RX_INVERTED() EXTMODULE_RX_INVERT_GPIO->BSRRL = EXTMODULE_RX_INVERT_GPIO_PIN

// Trainer Port
#define TRAINER_RCC_AHB1Periph (RCC_AHB1Periph_GPIOD)
#define TRAINER_GPIO GPIOD

#define TRAINER_IN_GPIO_PIN LL_GPIO_PIN_12 // PD.12
Expand Down

0 comments on commit 171efef

Please sign in to comment.