mirror of https://github.com/rusefi/ChibiOS.git
Fixes on USB lld related to STM32L432
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@9943 35acf78f-673a-0410-8e92-d51de3d6d3f4
This commit is contained in:
parent
af64942832
commit
4b40042078
|
@ -448,16 +448,6 @@ struct USBDriver {
|
|||
#endif
|
||||
#endif /* STM32L1XX */
|
||||
|
||||
#if defined(STM32L432xx)
|
||||
#if !defined(usb_lld_connect_bus)
|
||||
#define usb_lld_connect_bus(usbp) (USB->BCDR |= USB_BCDR_DPPU)
|
||||
#endif
|
||||
|
||||
#if !defined(usb_lld_disconnect_bus)
|
||||
#define usb_lld_disconnect_bus(usbp) (USB->BCDR &= ~USB_BCDR_DPPU)
|
||||
#endif
|
||||
#endif /* STM32L432xx */
|
||||
|
||||
/*===========================================================================*/
|
||||
/* External declarations. */
|
||||
/*===========================================================================*/
|
||||
|
|
|
@ -323,8 +323,8 @@
|
|||
/* USB attributes.*/
|
||||
#define STM32_HAS_USB TRUE
|
||||
#define STM32_USB_ACCESS_SCHEME_2x16 FALSE
|
||||
#define STM32_USB_PMA_SIZE 512
|
||||
#define STM32_USB_HAS_BCDR FALSE
|
||||
#define STM32_USB_PMA_SIZE 1024
|
||||
#define STM32_USB_HAS_BCDR TRUE
|
||||
#define STM32_USB1_HP_HANDLER Vector14C
|
||||
#define STM32_USB1_LP_HANDLER Vector14C
|
||||
#define STM32_USB1_HP_NUMBER 67
|
||||
|
|
Loading…
Reference in New Issue