Zoltan Hudak / Mbed OS mbed-os-bluepill

Files at this revision

API Documentation at this revision

Comitter:
hudakz
Date:
Fri Jan 08 22:21:27 2021 +0000
Parent:
9:eb0ca18f5777
Commit message:
Added USB support.

Changed in this revision

TARGET_BLUEPILL/PeripheralPins.c Show annotated file Show diff for this revision Revisions of this file
mbed-os.lib Show annotated file Show diff for this revision Revisions of this file
diff -r eb0ca18f5777 -r fc04048e7188 TARGET_BLUEPILL/PeripheralPins.c
--- a/TARGET_BLUEPILL/PeripheralPins.c	Tue Jul 21 07:28:50 2020 +0000
+++ b/TARGET_BLUEPILL/PeripheralPins.c	Fri Jan 08 22:21:27 2021 +0000
@@ -215,3 +215,10 @@
     {NC, NC, 0}
 };
 
+//*** USBDEVICE ***
+
+MBED_WEAK const PinMap PinMap_USB_FS[] = {
+    {PA_11,     USB_FS, STM_PIN_DATA(STM_MODE_INPUT, GPIO_NOPULL, 0)}, // USB_DM
+    {PA_12,     USB_FS, STM_PIN_DATA(STM_MODE_INPUT, GPIO_NOPULL, 0)}, // USB_DP
+    {NC, NC, 0}
+};
diff -r eb0ca18f5777 -r fc04048e7188 mbed-os.lib
--- a/mbed-os.lib	Tue Jul 21 07:28:50 2020 +0000
+++ b/mbed-os.lib	Fri Jan 08 22:21:27 2021 +0000
@@ -1,1 +1,1 @@
-https://github.com/ARMmbed/mbed-os/#a2ada74770f043aff3e61e29d164a8e78274fcd4
+https://github.com/ARMmbed/mbed-os/#cf4f12a123c05fcae83fc56d76442015cb8a39e9