mirror of
https://github.com/iNavFlight/inav.git
synced 2025-07-23 16:25:26 +03:00
Refactor TIMER/DMA framework (#3833)
* TIM/DMA abstraction * Migrage F7 TIM/DMA to HAL_LL * Refactor timers to use conventional HZ * Refactor PWM ourput code to use highest possible resolution * Remove TIMER_OUTPUT_ENABLED * Temporary disable SPRACINGF3NEO due to out of RAM
This commit is contained in:
parent
3b1b1bfc81
commit
78bc53f3ad
196 changed files with 2780 additions and 3164 deletions
|
@ -33,7 +33,7 @@
|
|||
#define MAX_SERVOS 8
|
||||
#endif
|
||||
|
||||
#define PWM_TIMER_MHZ 1
|
||||
#define PWM_TIMER_HZ 1000000
|
||||
|
||||
#define PULSE_1MS (1000) // 1ms pulse width
|
||||
|
||||
|
@ -68,8 +68,6 @@ typedef struct drv_pwm_config_s {
|
|||
uint16_t servoCenterPulse;
|
||||
uint8_t pwmProtocolType;
|
||||
uint16_t motorPwmRate;
|
||||
uint16_t idlePulse; // PWM value to use when initializing the driver. set this to either PULSE_1MS (regular pwm),
|
||||
// some higher value (used by 3d mode), or 0, for brushed pwm drivers.
|
||||
rangefinderIOConfig_t rangefinderIOConfig;
|
||||
} drv_pwm_config_t;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue