Configuration Options Index

This page provides a comprehensive index of all Kconfig configuration options available in the Nexus Embedded Platform.

平台配置

平台选择

  • PLATFORM - Target platform selection

  • PLATFORM_NATIVE - Native platform (Linux/Windows/macOS)

  • PLATFORM_STM32F4 - STM32F4 series MCUs

  • PLATFORM_STM32H7 - STM32H7 series MCUs

  • PLATFORM_GD32 - GigaDevice GD32 series MCUs

  • PLATFORM_ESP32 - Espressif ESP32 series

See Platform-Specific 配置 Guide for detailed platform configuration.

Chip Selection

STM32F4 Series:

  • CHIP_STM32F407 - STM32F407 MCU

  • CHIP_STM32F429 - STM32F429 MCU

STM32H7 Series:

  • CHIP_STM32H743 - STM32H743 MCU

  • CHIP_STM32H750 - STM32H750 MCU

OSAL 配置

Backend Selection

  • OSAL_BACKEND - OSAL backend selection

  • OSAL_BAREMETAL - Bare-metal (no RTOS)

  • OSAL_FREERTOS - FreeRTOS backend

  • OSAL_RTTHREAD - RT-Thread backend

  • OSAL_ZEPHYR - Zephyr RTOS backend

See OSAL Backend Configuration Guide for OSAL backend configuration.

FreeRTOS Configuration

  • FREERTOS_HEAP_SIZE - FreeRTOS heap size in bytes

  • FREERTOS_TOTAL_HEAP_SIZE - Total heap size

  • FREERTOS_MINIMAL_STACK_SIZE - Minimum stack size for tasks

  • FREERTOS_MAX_PRIORITIES - Maximum number of task priorities

外设配置

GPIO 配置

  • GPIO_ENABLED - Enable GPIO support

  • GPIO_PORT_A_ENABLED - Enable GPIO Port A

  • GPIO_PORT_B_ENABLED - Enable GPIO Port B

  • GPIO_PORT_C_ENABLED - Enable GPIO Port C

  • GPIO_PORT_D_ENABLED - Enable GPIO Port D

  • GPIO_PORT_E_ENABLED - Enable GPIO Port E

See 外设 配置 Guide for peripheral configuration examples.

UART 配置

  • UART_ENABLED - Enable UART support

  • UART_INSTANCE_COUNT - Number of UART instances

  • UART_DEFAULT_BAUDRATE - Default baud rate

  • UART_BUFFER_SIZE - UART buffer size

SPI 配置

  • SPI_ENABLED - Enable SPI support

  • SPI_INSTANCE_COUNT - Number of SPI instances

  • SPI_DEFAULT_SPEED - Default SPI clock speed

  • SPI_DMA_ENABLED - Enable DMA for SPI

I2C 配置

  • I2C_ENABLED - Enable I2C support

  • I2C_INSTANCE_COUNT - Number of I2C instances

  • I2C_DEFAULT_SPEED - Default I2C clock speed

  • I2C_TIMEOUT - I2C operation timeout

定时器配置

  • TIMER_ENABLED - Enable Timer support

  • TIMER_INSTANCE_COUNT - Number of timer instances

  • TIMER_RESOLUTION - Timer resolution in microseconds

ADC 配置

  • ADC_ENABLED - Enable ADC support

  • ADC_INSTANCE_COUNT - Number of ADC instances

  • ADC_RESOLUTION - ADC resolution (bits)

  • ADC_SAMPLE_TIME - ADC sample time

Framework Configuration

Config Manager

  • CONFIG_ENABLED - Enable Config Manager

  • CONFIG_BACKEND_RAM - RAM backend

  • CONFIG_BACKEND_FLASH - Flash backend

  • CONFIG_MAX_KEYS - Maximum number of configuration keys

See 配置管理器 for Config Manager documentation.

Log Framework

  • LOG_ENABLED - Enable Log Framework

  • LOG_LEVEL - Default log level

  • LOG_BACKEND_CONSOLE - Console backend

  • LOG_BACKEND_UART - UART backend

  • LOG_ASYNC_ENABLED - Enable async logging

See 日志框架 for Log Framework documentation.

Shell Framework

  • SHELL_ENABLED - Enable Shell Framework

  • SHELL_MAX_COMMANDS - Maximum number of commands

  • SHELL_HISTORY_SIZE - Command history size

  • SHELL_PROMPT - Shell prompt string

See Shell 框架 for Shell Framework documentation.

Init Framework

  • INIT_ENABLED - Enable Init Framework

  • INIT_LEVEL_BOARD - Board-level initialization

  • INIT_LEVEL_DRIVER - Driver-level initialization

  • INIT_LEVEL_APP - Application-level initialization

构建配置

构建选项

  • BUILD_TYPE - Build type (Debug/Release)

  • BUILD_TESTS - Build unit tests

  • BUILD_EXAMPLES - Build example applications

  • BUILD_DOCS - Build documentation

优化

  • OPTIMIZATION_LEVEL - Compiler optimization level

  • LTO_ENABLED - Enable Link-Time Optimization

  • SIZE_OPTIMIZATION - Optimize for size

调试

  • DEBUG_ENABLED - Enable debug features

  • ASSERT_ENABLED - Enable assertions

  • TRACE_ENABLED - Enable tracing

另请参阅