move mm32 USB_BASE into c file
This commit is contained in:
@@ -5,6 +5,9 @@
|
||||
#define USBD_IRQHandler USB_HP_CAN1_TX_IRQHandler //use actual usb irq name instead
|
||||
#endif
|
||||
|
||||
#define USB_BASE ((uint32_t)0x40005C00)
|
||||
#define USB ((USB_TypeDef *)USB_BASE)
|
||||
|
||||
#ifndef USB_NUM_BIDIR_ENDPOINTS
|
||||
#define USB_NUM_BIDIR_ENDPOINTS 5
|
||||
#endif
|
||||
|
||||
@@ -156,9 +156,6 @@ typedef struct
|
||||
__IO uint32_t rPOWER; /*! Address offset: 0x1C0 */
|
||||
} USB_TypeDef;
|
||||
|
||||
#define USB_BASE ((uint32_t)0x40005C00)
|
||||
#define USB ((USB_TypeDef*) USB_BASE )
|
||||
|
||||
/******************************************************************************/
|
||||
/* */
|
||||
/* USB */
|
||||
|
||||
Reference in New Issue
Block a user