SimpleFOClibrary supports a few compiler options which might be interesting to advanced users. They are described below.
Build flags control the way the compiler generates the code for SimpleFOClibrary. Some are supported on all architectures, while some are MCU-architecture dependent.
|All||set this to disable the entire debugging code|
|STM32||set to enable extra debug output for STM32 MCUs.|
|STM32||maximum number of PWM pins configurable, default is 12 (up to 2x 6PWM, normally that’s plenty)|
|SAMD21 / SAMD51||set to enable extra debug output for SAMD MCUs.|
|SAMD21 / SAMD51||maximum number of PWM pins configurable, default is 24 (for up to 4x6PWM, that should be enough ;-) )|
|SAMD21 / SAMD51||expected frequency on DPLL, since we don’t configure it ourselves. Typically this is the CPU frequency. For custom boards or overclockers you can override it using this define. Default is 120000000|
|RP2040||set to enable extra debug output on Raspberry Pico.|
|ESP32||force use of the LEDC PWM driver even on ESP32s that support MCPWM. Mainly useful for testing purposes, normally you would prefer MCPWM if it is available.|