3.1.8.2.19. waf_tools.bms_config_generate.set_rtos

waf_tools.bms_config_generate.set_rtos(bld: BuildContext, system: System) → list[dict]

Configure RTOS defines and environment variables.

Sets FOXBMS_RTOS_<NAME> and processes RTOS addons (e.g. freertos-plus-tcp). When TCP support is enabled, emits FOXBMS_TCP_SUPPORT and conditionally ipconfigHAS_DEBUG_PRINTF if UART is also active.

When TCP is not used, phantom interrupt defines are emitted for the EMAC InterruptServiceRoutines.

Parameters:
  • bld – The active waf build context.

  • system – The validated system configuration.

Returns:

A list of define dictionaries for header generation.