浏览代码

[Kconfig] Add Kconfig for CMSIS

Bernard Xiong 7 年之前
父节点
当前提交
9d7ffb1dc5
共有 2 个文件被更改,包括 22 次插入0 次删除
  1. 20 0
      components/CMSIS/Kconfig
  2. 2 0
      components/Kconfig

+ 20 - 0
components/CMSIS/Kconfig

@@ -0,0 +1,20 @@
+if ARCH_ARM_CORTEX_M
+
+menu "ARM CMSIS"
+
+config RT_USING_CMSIS_OS
+    bool "Using CMSIS RTOS API"
+    default n
+    help
+        Enable CMSIS RTOS API, which is implemented above RT-Thread.
+
+config RT_USING_RTT_CMSIS
+    bool "Using CMSIS Header files in RT-Thread"
+    default n
+    help
+        Use CMSIS header files in RT-Thread/components/CMSIS. Otherwise, use the 
+        CMSIS header files in BSP.
+
+endmenu
+
+endif

+ 2 - 0
components/Kconfig

@@ -28,4 +28,6 @@ source "$RTT_DIR/components/vbus/Kconfig"
 
 source "$RTT_DIR/components/utilities/Kconfig"
 
+source "$RTT_DIR/components/CMSIS/Kconfig"
+
 endmenu