move mm32 USB_BASE into c file

This commit is contained in:
sakumisu
2022-05-15 19:08:27 +08:00
parent 3577e19b9c
commit d20a8ed7f2
2 changed files with 3 additions and 3 deletions

View File

@@ -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

View File

@@ -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 */