mirror of
https://github.com/betaflight/betaflight.git
synced 2025-07-23 16:25:31 +03:00
Move Brushed ESC auto detection into seperate source files
pwm_output.c and pwm_output_hal.c are used aternativly
This commit is contained in:
parent
d93224be06
commit
07f7b20aec
10 changed files with 90 additions and 38 deletions
|
@ -114,15 +114,3 @@ pwmOutputPort_t *pwmGetMotors(void);
|
|||
bool pwmIsSynced(void);
|
||||
void pwmDisableMotors(void);
|
||||
void pwmEnableMotors(void);
|
||||
|
||||
#ifdef BRUSHED_ESC_AUTODETECT
|
||||
typedef enum {
|
||||
MOTOR_UNKNOWN = 0,
|
||||
MOTOR_BRUSHED,
|
||||
MOTOR_BRUSHLESS
|
||||
} HardwareMotorTypes_e;
|
||||
|
||||
extern uint8_t hardwareMotorType;
|
||||
|
||||
void detectBrushedESC(void);
|
||||
#endif
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue