diff options
| author | hathach <[email protected]> | 2014-04-09 22:29:38 +0700 |
|---|---|---|
| committer | hathach <[email protected]> | 2014-04-09 22:29:38 +0700 |
| commit | c7ac55aebc523fc3871e5dc0249af38204b0394a (patch) | |
| tree | 15bfc4f11f63243c08e90879338884fbc18e7d0d /tinyusb/device | |
| parent | 26ec28785cdb9ced9c87bd313a611e050bd74fd8 (diff) | |
remove OSAL_VAR for the simplicity
clean up osal.h
Diffstat (limited to 'tinyusb/device')
| -rw-r--r-- | tinyusb/device/usbd.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tinyusb/device/usbd.c b/tinyusb/device/usbd.c index 141c1e236..258a8ef9f 100644 --- a/tinyusb/device/usbd.c +++ b/tinyusb/device/usbd.c @@ -193,7 +193,7 @@ OSAL_TASK_FUNCTION(usbd_task, p_task_para) static tusb_error_t usbd_body_subtask(void)
{
- OSAL_VAR usbd_task_event_t event;
+ static usbd_task_event_t event;
OSAL_SUBTASK_BEGIN
@@ -266,7 +266,7 @@ tusb_error_t usbd_control_request_subtask(uint8_t coreid, tusb_control_request_t //------------- Class/Interface Specific Request -------------//
else if ( TUSB_REQUEST_RECIPIENT_INTERFACE == p_request->bmRequestType_bit.recipient)
{
- OSAL_VAR uint8_t class_code;
+ static uint8_t class_code;
class_code = usbd_devices[coreid].interface2class[ u16_low_u8(p_request->wIndex) ];
|
