Skip to content

Commit e182a22

Browse files
committed
[bsp][nrf5x]added the cherryusb adapter for nrf52840
1 parent cf199f5 commit e182a22

File tree

2 files changed

+3
-4
lines changed

2 files changed

+3
-4
lines changed

bsp/nrf5x/nrf52840/board/port/SConscript

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ src = []
88
path = []
99

1010
if GetDepend(['RT_USING_CHERRYUSB']):
11-
src += Glob('cherryusb/cherryusb_usbd_compostite_init.c')
11+
src += Glob('cherryusb/cherryusb.c')
1212
path += [cwd + '/cherryusb']
1313

1414
group = DefineGroup('Drivers', src, depend = [''], CPPPATH = path)

bsp/nrf5x/nrf52840/board/port/cherryusb/cherryusb_usbd_compostite_init.c renamed to bsp/nrf5x/nrf52840/board/port/cherryusb/cherryusb.c

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -49,23 +49,22 @@ void usb_low_disable_irq(void)
4949
{
5050
NVIC_DisableIRQ(USBD_IRQn);
5151
}
52+
5253
int cherryusb_protocol_stack_init(void)
5354
{
5455
#ifdef RT_CHERRYUSB_DEVICE_TEMPLATE_CDC_ACM
5556
extern void cdc_acm_init(void);
5657
cdc_acm_init();
5758
rt_kprintf("cdc acm example started. \r\n");
58-
nrf_delay_ms(5000);
5959
#elif defined RT_CHERRYUSB_DEVICE_TEMPLATE_MSC
6060
extern void msc_ram_init(void);
6161
msc_ram_init();
6262
rt_kprintf("msc ram example started. \r\n");
63-
nrf_delay_ms(5000);
6463
#elif defined RT_CHERRYUSB_DEVICE_TEMPLATE_HID_KEYBOARD
6564
extern void hid_keyboard_init(uint8_t busid, uintptr_t reg_base);
6665
hid_keyboard_init(0,NULL);
6766
rt_kprintf("hid keyboard example started. \r\n");
68-
// nrf_delay_ms(5000);
6967
#endif
7068
}
69+
7170
INIT_APP_EXPORT(cherryusb_protocol_stack_init);

0 commit comments

Comments
 (0)