2. 本範例主要是在STM32F103上面移植Virtual COM-Port(VCP) , Keyboard/Mouse/HID RAW(HID) , Mass Storage(MSC)這三種比較常用的類型.
3. 由於STM32F103並沒有類似像Discovery Board這種板子, 因此本範例的GPIO Define如下, 請參考的人自行根據自己手上的板子來修改.
4. How to switch VCP/HID/MSC mode: (usb_select.h, default is MSC mode)
5. Main flow:
- GPIO & RAM-Disk(8KB) Init.
- Disconnect USB-Pull up(PA8).
- I2C Init.
- USB Init.
- Systick Init.
- Connect USB-Pull up(PA8).
- Check Button Status, if press the button, run HID or VCP test code.
- It will run SCSI command when switch to MSC mode.
6. How to adjust RAM-Disk Size: (mass_mal.c)
7. Test flow:
- MSC mode:
- VCP mode:
- HID mode:
- Keyboard:
- Mouse:
- HID RAW:
8. Test Code Download Link:
沒有留言:
張貼留言