Skip to content

Commit 5ae850b

Browse files
committed
remove unused macro
1 parent 84e21e8 commit 5ae850b

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

src/arduino/ports/ch32/Adafruit_TinyUSB_ch32.cpp

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -117,8 +117,6 @@ void TinyUSB_Port_InitDevice(uint8_t rhport) {
117117
#define RCC_AHBPeriph_OTG_FS RCC_AHBPeriph_USBHD
118118
#endif
119119

120-
#if defined(CH32V20x) || defined(CH32V30x) || defined(CH32L10x)
121-
122120
uint8_t usb_div;
123121
switch (SystemCoreClock) {
124122
#if defined(CH32V20x) || defined(CH32V30x)
@@ -159,8 +157,6 @@ void TinyUSB_Port_InitDevice(uint8_t rhport) {
159157
RCC_USBCLKConfig(usb_div);
160158
#endif
161159

162-
#endif
163-
164160
#if CFG_TUD_WCH_USBIP_FSDEV
165161
RCC_APB1PeriphClockCmd(RCC_APB1Periph_USB, ENABLE);
166162
#endif

0 commit comments

Comments
 (0)