fix: PWM gimbals initialisation and inversion (#3745)

* fix: PWM gimbals initialisation and inversion

* feat: add periph clock support in PWM stick driver
This commit is contained in:
Raphael Coeffic
2023-07-14 14:54:32 +10:00
committed by GitHub
parent c5aa250dd9
commit 1bb27e7011
17 changed files with 282 additions and 144 deletions
+2 -10
View File
@@ -21,17 +21,16 @@
#include "hal/adc_driver.h"
#include "hal/switch_driver.h"
#include "hal/module_port.h"
#include "board.h"
#include "boards/generic_stm32/module_ports.h"
#include "boards/generic_stm32/intmodule_heartbeat.h"
#include "boards/generic_stm32/analog_inputs.h"
#include "debug.h"
#include "rtc.h"
#include "hal/adc_driver.h"
#include "hal/module_port.h"
#include "../common/arm/stm32/timers_driver.h"
#include "dataconstants.h"
@@ -47,10 +46,6 @@
#include "bluetooth_driver.h"
#endif
#if defined(PWM_STICKS)
#include "sticks_pwm_driver.h"
#endif
#if defined(__cplusplus)
extern "C" {
#endif
@@ -70,9 +65,6 @@ bool UNEXPECTED_SHUTDOWN()
HardwareOptions hardwareOptions;
// adc_driver.cpp
extern const etx_hal_adc_driver_t _adc_driver;
void watchdogInit(unsigned int duration)
{
IWDG->KR = 0x5555; // Unlock registers