TI TM4C/LM4F cdc-acm fixes
This commit is contained in:
parent
7e5a664df9
commit
2365bbe010
|
@ -498,7 +498,7 @@ static void cdcacm_set_config(usbd_device *dev, uint16_t wValue)
|
|||
configured = wValue;
|
||||
|
||||
/* GDB interface */
|
||||
#ifdef STM32F4
|
||||
#if defined(STM32F4) || defined(LM4F)
|
||||
usbd_ep_setup(dev, 0x01, USB_ENDPOINT_ATTR_BULK,
|
||||
CDCACM_PACKET_SIZE, gdb_usb_out_cb);
|
||||
#else
|
||||
|
|
|
@ -77,12 +77,12 @@ platform_init(void)
|
|||
periph_clock_enable(RCC_GPIOD);
|
||||
__asm__("nop"); __asm__("nop"); __asm__("nop");
|
||||
gpio_mode_setup(GPIOD_BASE, GPIO_MODE_ANALOG, GPIO_PUPD_NONE, GPIO4|GPIO5);
|
||||
usbuart_init();
|
||||
cdcacm_init();
|
||||
|
||||
usb_enable_interrupts(USB_INT_RESET | USB_INT_DISCON |
|
||||
USB_INT_RESUME | USB_INT_SUSPEND,
|
||||
0xff, 0xff);
|
||||
|
||||
usbuart_init();
|
||||
cdcacm_init();
|
||||
}
|
||||
|
||||
void platform_timeout_set(uint32_t ms)
|
||||
|
|
Loading…
Reference in New Issue