diff options
| author | sakumisu <[email protected]> | 2022-05-02 23:08:57 +0800 |
|---|---|---|
| committer | sakumisu <[email protected]> | 2022-05-03 10:40:21 +0800 |
| commit | 33c0c2f02c087df62688ac3a2b95e825367376ea (patch) | |
| tree | d8bda17c18d7021c506e1f8ff963429fbd71dbda /docs/source/quick_start/other_chip.rst | |
| parent | 5ab847d745bd7e93e331a1b6178bd94e605e2d0b (diff) | |
update doc
Diffstat (limited to 'docs/source/quick_start/other_chip.rst')
| -rw-r--r-- | docs/source/quick_start/other_chip.rst | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/docs/source/quick_start/other_chip.rst b/docs/source/quick_start/other_chip.rst index db919461..66e14a28 100644 --- a/docs/source/quick_start/other_chip.rst +++ b/docs/source/quick_start/other_chip.rst @@ -15,6 +15,8 @@ USB Device 移植要点 - 编译使用。各个 class 如何使用,参考 demo 下的 template +.. note:: device 移植要点其实就三个,实现 `usb_dc_low_level_init` ,改 `USBD_IRQHandler=xxxx` 、`USB_BASE=0xxxxx` 、 `USB_NUM_BIDIR_ENDPOINTS=x`,改 `usb_config.h` 中的内容 + USB Host 移植要点 ----------------------- @@ -35,6 +37,8 @@ USB Host 移植要点 - 编译使用。各个 class 如何使用,参考 demo 下的 `usb_host.c` 文件 +.. note:: device 移植要点其实就三个,实现 `usb_hc_low_level_init` ,改 `USBH_IRQHandler=xxxx` 、`USB_BASE=0xxxxx` ,改 `usb_config.h` 中的内容 + .. note:: 使用 host 时,推荐添加除了 hub 以外的所有适配的 class 驱动,达到自动加载驱动的目的。当然,如果不用,那就不添加。 .. caution:: 如果主从 ip 共用一个中断,推荐设置 `USBD_IRQHandler=USBD_IRQHandler` 、 `USBH_IRQHandler=USBH_IRQHandler` ,然后由真正的中断函数根据主从模式调用这两个函数。
\ No newline at end of file |
