tfx2001 3 年 前
コミット
514c2222ab
4 ファイル変更12 行追加4 行削除
  1. 4 0
      rt-thread/README.md
  2. 7 3
      rt-thread/README_ZH.md
  3. BIN
      rt-thread/assets/mdk.png
  4. 1 1
      rt-thread/usb_descriptor.c

+ 4 - 0
rt-thread/README.md

@@ -30,6 +30,10 @@ The specific path in RT-Thread ENV package manager is as follows:
 Then let the RT-Thread package manager automatically update, or use the
 `pkgs --update` command to update the package to the BSP.
 
+**Note:** For use in Keil MDK, please use the **ARM Clang** compiler or manually check **GNU Extensions** in the compile options.
+
+![MDK](./assets/mdk.png)
+
 ### 1.2 RT-Thread Studio
 
 Search for `TinyUSB` in RT-Thread Settings to add the package to the project.

+ 7 - 3
rt-thread/README_ZH.md

@@ -30,6 +30,10 @@ RT-Thread ENV 包管理器中的路径如下:
 然后让 RT-Thread 的包管理器自动更新,或者使用 `pkgs --update`
 命令更新包到 BSP 中。
 
+**注意:** 在 Keil MDK 中使用时,请选择 **ARM Clang** 编译器,或手动在编译选项中选中 **GNU Extensions**
+
+![MDK](./assets/mdk.png)
+
 ### 1.2、RT-Thread Studio
 
 在 RT-Thread Settings 中搜索 `TinyUSB` 即可将软件包添加至工程中。
@@ -47,9 +51,9 @@ RT-Thread ENV 包管理器中的路径如下:
 
 ### 2.2、设备类
 
--   通信设备类 (CDC)
--   大容量存储设备 (MSC)
--   人体学输入设备 (HID)
+- 通信设备类 (CDC)
+- 大容量存储设备 (MSC)
+- 人体学输入设备 (HID)
 
 3、Feedback
 -----------

BIN
rt-thread/assets/mdk.png


+ 1 - 1
rt-thread/usb_descriptor.c

@@ -67,7 +67,7 @@ static uint8_t const desc_hid_report[] =
 // Descriptor contents must exist long enough for transfer to complete
 TU_ATTR_WEAK uint8_t const *tud_hid_descriptor_report_cb(uint8_t instance)
 {
-    (void)instance;
+    (void) instance;
     return desc_hid_report;
 }