Ignore:
Timestamp:
Apr 30, 2016, 11:29:25 PM (8 years ago)
Author:
ertl-honda
Message:

1.7.10のファイルに更新

File:
1 edited

Legend:

Unmodified
Added
Removed
  • rtos_arduino/trunk/arduino_lib/hardware/arduino/samd/cores/arduino/startup.c

    r136 r224  
    4646void HardFault_Handler( void )
    4747{
    48   while ( 1 )
    49   {
    50   }
     48        while ( 1 )
     49  {
     50        }
    5151}
    5252
     
    8282void NVMCTRL_Handler         ( void ) __attribute__ ((weak, alias("Dummy_Handler")));
    8383void DMAC_Handler            ( void ) __attribute__ ((weak, alias("Dummy_Handler")));
    84 void USB_Handler             ( void ) __attribute__ ((weak, alias("Dummy_Handler")));
     84void USB_Handler             ( void ) __attribute__ ((weak));
    8585void EVSYS_Handler           ( void ) __attribute__ ((weak, alias("Dummy_Handler")));
    8686void SERCOM0_Handler         ( void ) __attribute__ ((weak, alias("Dummy_Handler")));
     
    406406  while ( 1 )
    407407  {
    408   }
    409 }
     408 }
     409}
     410
     411static void (*usb_isr)(void) = NULL;
     412
     413void USB_Handler(void)
     414{
     415  if (usb_isr)
     416    usb_isr();
     417}
     418
     419void 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.