function test USBMSD(as external strage for PC USB) and USBSerial. Switching between USBMSD and USBSerial(Not work simultaneously)
see /users/kenjiArai/notebook/usb-interface--usbhost-and-usbdevice/
mbed_app.json
- Committer:
- kenjiArai
- Date:
- 2020-04-30
- Revision:
- 1:7a568319eeb7
- Parent:
- 0:c6dea1f647f6
File content as of revision 1:7a568319eeb7:
{ "config": { "usb_speed": { "help": "USE_USB_OTG_FS or USE_USB_OTG_HS or USE_USB_HS_IN_FS", "value": "USE_USB_OTG_FS" } }, "target_overrides": { "*": { "target.components_add": ["SD"], "target.device_has_add": ["USBDEVICE"] }, "NRF52840_DK": { "target.extra_labels_add": ["SOFTDEVICE_NONE"], "target.extra_labels_remove": ["BLE", "SOFTDEVICE_COMMON", "SOFTDEVICE_S140_FULL", "NORDIC_SOFTDEVICE"], "target.features_add": ["STORAGE"], "target.components_add": ["SD"], "sd.SPI_MOSI": "D11", "sd.SPI_MISO": "D12", "sd.SPI_CLK" : "D13", "sd.SPI_CS" : "D10" } } }