Skip to content

Commit

Permalink
Update ChibiOS to 17.6.3
Browse files Browse the repository at this point in the history
  • Loading branch information
fredizzimo authored and jackhumbert committed Feb 7, 2018
1 parent ad01e3c commit 6a9617b
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 7 deletions.
2 changes: 1 addition & 1 deletion lib/chibios
Submodule chibios updated 1246 files
11 changes: 5 additions & 6 deletions tmk_core/protocol/chibios/usb_main.c
Original file line number Diff line number Diff line change
Expand Up @@ -778,10 +778,6 @@ static const USBEndpointConfig nkro_ep_config = {
* TODO: maybe disable some things when connection is lost? */
static void usb_event_cb(USBDriver *usbp, usbevent_t event) {
switch(event) {
case USB_EVENT_RESET:
//TODO: from ISR! print("[R]");
return;

case USB_EVENT_ADDRESS:
return;

Expand All @@ -804,12 +800,15 @@ static void usb_event_cb(USBDriver *usbp, usbevent_t event) {
#endif /* NKRO_ENABLE */
osalSysUnlockFromISR();
return;

case USB_EVENT_SUSPEND:
//TODO: from ISR! print("[S]");
#ifdef SLEEP_LED_ENABLE
sleep_led_enable();
#endif /* SLEEP_LED_ENABLE */
/* Falls into.*/
case USB_EVENT_UNCONFIGURED:
/* Falls into.*/
case USB_EVENT_RESET:
return;

case USB_EVENT_WAKEUP:
Expand Down Expand Up @@ -1032,7 +1031,7 @@ void init_usb_driver(USBDriver *usbp) {

chVTObjectInit(&keyboard_idle_timer);
#ifdef CONSOLE_ENABLE
obqObjectInit(&console_buf_queue, console_queue_buffer, CONSOLE_EPSIZE, CONSOLE_QUEUE_CAPACITY, console_queue_onotify, (void*)usbp);
obqObjectInit(&console_buf_queue, false, console_queue_buffer, CONSOLE_EPSIZE, CONSOLE_QUEUE_CAPACITY, console_queue_onotify, (void*)usbp);
chVTObjectInit(&console_flush_timer);
#endif
}
Expand Down

0 comments on commit 6a9617b

Please sign in to comment.