- Timestamp:
- Apr 30, 2016, 11:29:25 PM (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
rtos_arduino/trunk/arduino_lib/hardware/arduino/samd/cores/arduino/startup.c
r136 r224 46 46 void HardFault_Handler( void ) 47 47 { 48 49 { 50 48 while ( 1 ) 49 { 50 } 51 51 } 52 52 … … 82 82 void NVMCTRL_Handler ( void ) __attribute__ ((weak, alias("Dummy_Handler"))); 83 83 void DMAC_Handler ( void ) __attribute__ ((weak, alias("Dummy_Handler"))); 84 void USB_Handler ( void ) __attribute__ ((weak , alias("Dummy_Handler")));84 void USB_Handler ( void ) __attribute__ ((weak)); 85 85 void EVSYS_Handler ( void ) __attribute__ ((weak, alias("Dummy_Handler"))); 86 86 void SERCOM0_Handler ( void ) __attribute__ ((weak, alias("Dummy_Handler"))); … … 406 406 while ( 1 ) 407 407 { 408 } 409 } 408 } 409 } 410 411 static void (*usb_isr)(void) = NULL; 412 413 void USB_Handler(void) 414 { 415 if (usb_isr) 416 usb_isr(); 417 } 418 419 void USB_SetHandler(void (*new_usb_isr)(void)) 420 { 421 usb_isr = new_usb_isr; 422 } 423
Note:
See TracChangeset
for help on using the changeset viewer.