KConfig 860 B

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859
  1. mainmenu "RT-Thread Configuration"
  2. config $BSP_DIR
  3. string
  4. option env="BSP_ROOT"
  5. default "."
  6. config $RTT_DIR
  7. string
  8. option env="RTT_ROOT"
  9. default "../.."
  10. config $PKGS_DIR
  11. string
  12. option env="PKGS_ROOT"
  13. default "packages"
  14. source "$RTT_DIR/KConfig"
  15. source "$PKGS_DIR/KConfig"
  16. if RT_USING_PIN
  17. config STM32F10X_PIN_NUMBERS
  18. int "number of stm32 pin numbers"
  19. default 64
  20. endif
  21. if RT_USING_SERIAL
  22. config RT_USING_UART1
  23. bool "Using uart1"
  24. default y
  25. config RT_USING_UART2
  26. bool "Using uart2"
  27. default n
  28. config RT_USING_UART3
  29. bool "Using uart3"
  30. default n
  31. endif
  32. if RT_USING_SPI
  33. config RT_USING_SPI1
  34. bool "Using spi1"
  35. default y
  36. config RT_USING_SPI2
  37. bool "Using spi2"
  38. default n
  39. endif