mirror of
https://github.com/iNavFlight/inav.git
synced 2025-07-26 09:45:33 +03:00
Allow max motors to be set in target.h
This commit is contained in:
parent
5ec4cf715a
commit
941b72b36f
5 changed files with 73 additions and 29 deletions
|
@ -31,6 +31,12 @@
|
|||
|
||||
#include "pwm_output.h"
|
||||
|
||||
#if (MAX_MOTORS > MAX_SERVOS)
|
||||
#define MAX_PWM_OUTPUT_PORTS MAX_MOTORS
|
||||
#else
|
||||
#define MAX_PWM_OUTPUT_PORTS MAX_SERVOS
|
||||
#endif
|
||||
|
||||
typedef void (*pwmWriteFuncPtr)(uint8_t index, uint16_t value); // function pointer used to write motors
|
||||
|
||||
typedef struct {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue