aboutsummaryrefslogtreecommitdiffstats
path: root/os/hal/ports/STM32/LLD
diff options
context:
space:
mode:
authorGiovanni Di Sirio <gdisirio@gmail.com>2018-05-08 12:36:23 +0000
committerGiovanni Di Sirio <gdisirio@gmail.com>2018-05-08 12:36:23 +0000
commitd4481fd211ea38aba3b32ace750834e5783f05e9 (patch)
tree3dbe7fc29847b90bf9cf5d46aca6d8436a73fac6 /os/hal/ports/STM32/LLD
parente1474c129264bf3c378544cf25c79fe8aaf8f5d5 (diff)
downloadChibiOS-d4481fd211ea38aba3b32ace750834e5783f05e9.tar.gz
ChibiOS-d4481fd211ea38aba3b32ace750834e5783f05e9.tar.bz2
ChibiOS-d4481fd211ea38aba3b32ace750834e5783f05e9.zip
H7 OTG changes, not complete.
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@12015 110e8d01-0319-4d1e-a829-52ad28d1bb01
Diffstat (limited to 'os/hal/ports/STM32/LLD')
-rw-r--r--os/hal/ports/STM32/LLD/OTGv1/hal_usb_lld.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/os/hal/ports/STM32/LLD/OTGv1/hal_usb_lld.h b/os/hal/ports/STM32/LLD/OTGv1/hal_usb_lld.h
index 7c2019685..8b8e39b7f 100644
--- a/os/hal/ports/STM32/LLD/OTGv1/hal_usb_lld.h
+++ b/os/hal/ports/STM32/LLD/OTGv1/hal_usb_lld.h
@@ -241,6 +241,16 @@
#define STM32_USBCLK STM32_OTGFSCLK
#elif defined(STM32L4XX)
#define STM32_USBCLK STM32_48CLK
+#elif defined(STM32H7XX)
+/* Defines directly STM32_USBCLK.*/
+#define rccEnableOTG_FS rccEnableUSB1_OTG_HS
+#define rccDisableOTG_FS rccDisableUSB1_OTG_HS
+#define rccResetOTG_FS rccResetUSB1_OTG_HS
+#define rccEnableOTG_HS rccEnableUSB2_OTG_HS
+#define rccDisableOTG_HS rccDisableUSB2_OTG_HS
+#define rccResetOTG_HS rccResetUSB2_OTG_HS
+#define rccEnableOTG_HSULPI rccEnableUSB2_HSULPI
+#define rccDisableOTG_HSULPI rccDisableUSB2_HSULPI
#else
#error "unsupported STM32 platform for OTG functionality"
#endif