BuildOptions - neoxic/ESCape32 GitHub Wiki
Build options can be used to customize a build while avoiding the need to modify the source code. These options can be added to a new or existing target definition in the corresponding CMakeLists.txt file.
PB4/PA2 pinout selection (STM32F051, STM32G071xB, GD32F350).
PB4/PA6 pinout selection (STM32G071xN).
Enable two-wire communication via PA15:RX and PA2:TX when PA2 pinout is selected.
Force the bootloader to pass control to the firmware as soon as possible. The only way to enter bootloader mode is via a software reset (bootloader probe via CLI).
Any default configuration value can be overriden using the corresponding uppercase option. For example, ARM=0
is equivalent to arm=0
(disable arming).
Enable direct analog mode. Startup music, arming and digital input including CLI are disabled.
Override analog throttle ADC channel.
Dead time (clock cycles) [0..1023].
Motor phase to comparator input pin mapping (123, 231, 312, 321, 213, 132).
Hall sensor pin mapping.
Telemetry sensor pin mapping.
BEC voltage control pin mapping.
Analog LED pin mapping.
Treat LED as active low. LEDx_INV
can be used to invert individual pins.
Enable WS2812 RGB LED.
Enable LED status indication.
Override ESC temperature sensor ADC channel.
Override ESC temperature sensor function.
Override motor temperature sensor function.
Voltage sensor multiplier (%).
Current sensor multiplier (mA/mV).
Override native serial protocol baud rate (460800).
Enable inverted high gate logic.
Enable PWM/EN driver logic.
Enable 100% duty cycle driver support.
Use external crystal oscillator running at X
Mhz (STM32G071, STM32G431).
Use internal Hall XOR signal (STM32G431Cx).
PF0/PB1 pinout selection (STM32G431Cx).