File tree Expand file tree Collapse file tree 1 file changed +9
-7
lines changed Expand file tree Collapse file tree 1 file changed +9
-7
lines changed Original file line number Diff line number Diff line change 68
68
#define STALL_EP0 () \
69
69
do { IN0_SET_STALL; OUT0_SET_STALL; } while(0)
70
70
71
- #define IEP0CNT_CLR { IEP0CNT &= ~0x0f; }
72
- #define IEP0CNT_SET (COUNT ) { IEP0CNT_CLR; IEP0CNT |= COUNT; }
71
+ #define IEP0CNT_CLR \
72
+ do { IEP0CNT &= ~0x0f; } while(0)
73
+ #define IEP0CNT_SET (COUNT ) \
74
+ do { IEP0CNT_CLR; IEP0CNT |= COUNT; } while (0)
73
75
74
76
enum {
75
77
REPORT_ID_ACPI = 0x01 ,
@@ -357,10 +359,10 @@ uint16_t ep0_xfer_bytes_left;
357
359
uint8_t * ep0_xfer_src ;
358
360
359
361
// TODO: remove
360
- uint8_t __xdata usb_rx_data [8 ];
361
- uint8_t __xdata * buffer_addr ;
362
- __bit device_remote_wakeup_f ;
363
- uint8_t __xdata configution_value ;
362
+ volatile uint8_t __xdata usb_rx_data [8 ];
363
+ volatile uint8_t __xdata * buffer_addr ;
364
+ volatile __bit device_remote_wakeup_f ;
365
+ volatile uint8_t __xdata configution_value ;
364
366
365
367
uint8_t __xdata EP1_IDLE_TIME ;
366
368
uint8_t __xdata EP1_IDLE_COUNT ;
@@ -423,7 +425,7 @@ static void usb_setup_irq()
423
425
STALL_EP0 ();
424
426
return ;
425
427
}
426
-
428
+ break ;
427
429
case (USB_DEVICE_TO_HOST | USB_STANDARD | USB_DEVICE ):
428
430
switch (request ) {
429
431
case USB_GET_STATUS :
You can’t perform that action at this time.
0 commit comments