100 #ifdef DSHOT_SERVO_10
101 gpio_setup_pin_af(DSHOT_SERVO_10_GPIO, DSHOT_SERVO_10_PIN, DSHOT_SERVO_10_AF,
true);
103 #ifdef DSHOT_SERVO_11
104 gpio_setup_pin_af(DSHOT_SERVO_11_GPIO, DSHOT_SERVO_11_PIN, DSHOT_SERVO_11_AF,
true);
166 #ifdef DSHOT_SERVO_10
169 #ifdef DSHOT_SERVO_11
void gpio_setup_pin_af(ioportid_t port, uint16_t pin, uint8_t af, bool is_output)
Setup a gpio for input or output with alternate function.
#define DSHOT_SERVO_1_GPIO
DSHOT driver based on ChibiOS.
#define DSHOT_SERVO_4_PIN
uint16_t actuators_dshot_values[ACTUATORS_DSHOT_NB]
#define DSHOT_SERVO_4_GPIO
#define DSHOT_SERVO_1_CHANNEL
#define DSHOT_SERVO_5_PIN
Some architecture independent helper functions for GPIOs.
#define DSHOT_SERVO_2_DRIVER
DSHOT Driver configuration structure.
void dshotStart(DSHOTDriver *driver, const DSHOTConfig *config)
Configures and activates the DSHOT peripheral.
void dshotSetThrottle(DSHOTDriver *driver, const uint8_t index, const uint16_t throttle)
prepare throttle order for specified ESC
#define DSHOT_SERVO_0_CHANNEL
#define DSHOT_SERVO_0_PIN
void dshotSendFrame(DSHOTDriver *driver)
send throttle order
#define DSHOT_SERVO_3_CHANNEL
#define DSHOT_SERVO_0_GPIO
#define DSHOT_SERVO_0
DSHOT.
#define DSHOT_SERVO_3_PIN
#define DSHOT_SERVO_5_CHANNEL
void actuators_dshot_arch_init(void)
Arch dependent init.
#define DSHOT_SERVO_2_PIN
#define DSHOT_SERVO_5_GPIO
#define DSHOT_SERVO_3_DRIVER
#define DSHOT_SERVO_1_PIN
#define DSHOT_SERVO_4_DRIVER
#define DSHOT_SERVO_2_GPIO
#define ACTUATORS_DSHOT_NB
Maxnum number of DSHOT commands This should be large enough for max applications: 8 motors +1 in case...
void actuators_dshot_arch_commit(void)
#define DSHOT_SERVO_3_GPIO
#define DSHOT_SERVO_5_DRIVER
#define DSHOT_SERVO_2_CHANNEL
#define DSHOT_SERVO_0_DRIVER
#define DSHOT_SERVO_1_DRIVER
#define DSHOT_SERVO_4_CHANNEL