1
0
Fork 0
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:
Martin Budden 2016-05-21 10:33:03 +01:00
parent 5ec4cf715a
commit 941b72b36f
5 changed files with 73 additions and 29 deletions

View file

@ -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 {