-
Notifications
You must be signed in to change notification settings - Fork 38
BuildOptions
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 number.
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. The following RGB status codes are used:
- R: solid - temperature/voltage/current protection;
- G: blinking slow/fast - forward/reverse, 1/2 duration - trap mode, 3/4 duration - sine startup mode;
- B: blinking once/twice - passive/active drag brake;
In case of fewer availabe LEDs, patterns are combined.
Override ESC temperature sensor ADC channel.
Override ESC temperature sensor function.
Motor temperature sensor.
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 (STM32G431).
PF0/PB1 pinout selection (STM32G431Cx).
This software is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY, without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. NOT FOR MILITARY USE. May all beings be happy.