summaryrefslogtreecommitdiff
path: root/src/device/usbd.c
diff options
context:
space:
mode:
authorhathach <[email protected]>2019-10-01 16:09:18 +0700
committerGitHub <[email protected]>2019-10-01 16:09:18 +0700
commitd3e48da5a1266a88f5f0fdfe28818c8599b09844 (patch)
tree156cd459525df4b049a41c6afffc73b1dc75b4a9 /src/device/usbd.c
parent64467010410a8f08f77061b3f389ff7d71ddca84 (diff)
parent6479ee53d5ecaf2b47b59979239ac31868779c05 (diff)
Merge pull request #191 from hathach/develop
fix #161 and enable -Wextra for more warnings
Diffstat (limited to 'src/device/usbd.c')
-rw-r--r--src/device/usbd.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/device/usbd.c b/src/device/usbd.c
index 3700fb988..7f819d8f9 100644
--- a/src/device/usbd.c
+++ b/src/device/usbd.c
@@ -52,14 +52,14 @@ typedef struct {
uint8_t self_powered : 1; // configuration descriptor's attribute
};
- uint8_t ep_busy_map[2]; // bit mask for busy endpoint
- uint8_t ep_stall_map[2]; // bit map for stalled endpoint
+ volatile uint8_t ep_busy_map[2]; // bit mask for busy endpoint
+ volatile uint8_t ep_stall_map[2]; // bit map for stalled endpoint
uint8_t itf2drv[16]; // map interface number to driver (0xff is invalid)
uint8_t ep2drv[8][2]; // map endpoint to driver ( 0xff is invalid )
}usbd_device_t;
-static usbd_device_t _usbd_dev = { 0 };
+static usbd_device_t _usbd_dev;
// Invalid driver ID in itf2drv[] ep2drv[][] mapping
enum { DRVID_INVALID = 0xFFu };