blob: 260af9fae499afb0d794a5c55cb9ce40a2005463 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
|
#ifndef USB_H
#define USB_H
#if defined(STM32F1) || defined(STM32F3)
#include "f1_usb.h"
static F1_USB_t USB(0x40005c00, 0x40006000);
#elif defined(STM32F4)
#include "dwc_otg.h"
static DWC_OTG_t OTG_FS(0x50000000);
static DWC_OTG_t OTG_HS(0x40040000);
#elif defined(STM32L0)
#include "l0_usb.h"
static L0_USB_t USB(0x40005c00, 0x40006000);
#elif defined(STM32WB)
#include "l0_usb.h"
static L0_USB_t USB(0x40006800, 0x40006c00);
#elif defined(NRF52840)
#include "usb_nrf.h"
static USB_NRF_t USBD(0x40027000);
#endif
#endif
|