diff options
| author | hathach <[email protected]> | 2015-05-01 18:45:22 +0700 |
|---|---|---|
| committer | hathach <[email protected]> | 2015-05-01 18:45:22 +0700 |
| commit | 62ae417add4f4806ae9b1bcf910708c4f0b8173b (patch) | |
| tree | ab55622627b34f170ec73de7f55046fbac609de3 /tinyusb/device | |
| parent | c73907f83107caa5c495c5121cdb4e660f5a0ea0 (diff) | |
formatting
Diffstat (limited to 'tinyusb/device')
| -rw-r--r-- | tinyusb/device/dcd_lpc175x_6x.h | 6 | ||||
| -rw-r--r-- | tinyusb/device/usbd.c | 3 | ||||
| -rw-r--r-- | tinyusb/device/usbd_dcd.h | 3 |
3 files changed, 8 insertions, 4 deletions
diff --git a/tinyusb/device/dcd_lpc175x_6x.h b/tinyusb/device/dcd_lpc175x_6x.h index cfdcb27b1..fe3c509c8 100644 --- a/tinyusb/device/dcd_lpc175x_6x.h +++ b/tinyusb/device/dcd_lpc175x_6x.h @@ -131,7 +131,8 @@ enum { }; //------------- SIE Command Code -------------// -typedef enum { +typedef enum +{ SIE_CMDPHASE_WRITE = 1, SIE_CMDPHASE_READ = 2, SIE_CMDPHASE_COMMAND = 5 @@ -176,7 +177,8 @@ enum { SIE_SELECT_ENDPOINT_BUFFER2_FULL_MASK = BIT_(6) }; -typedef enum { +typedef enum +{ SIE_SET_ENDPOINT_STALLED_MASK = BIT_(0), SIE_SET_ENDPOINT_DISABLED_MASK = BIT_(5), SIE_SET_ENDPOINT_RATE_FEEDBACK_MASK = BIT_(6), diff --git a/tinyusb/device/usbd.c b/tinyusb/device/usbd.c index 61a9ab636..bba32a6bd 100644 --- a/tinyusb/device/usbd.c +++ b/tinyusb/device/usbd.c @@ -114,7 +114,8 @@ bool tusbd_is_configured(uint8_t coreid) //------------- OSAL Task -------------//
enum { USBD_TASK_QUEUE_DEPTH = 16 };
-typedef enum {
+typedef enum
+{
USBD_EVENTID_SETUP_RECEIVED = 1,
USBD_EVENTID_XFER_DONE
}usbd_eventid_t;
diff --git a/tinyusb/device/usbd_dcd.h b/tinyusb/device/usbd_dcd.h index 5c99c3c1e..f6b085cfe 100644 --- a/tinyusb/device/usbd_dcd.h +++ b/tinyusb/device/usbd_dcd.h @@ -59,7 +59,8 @@ enum { USBD_INTERFACE_NUM_MAX = 16 // USB specs specify up to 16 endpoints per device
};
-typedef enum {
+typedef enum
+{
USBD_BUS_EVENT_RESET = 1,
USBD_BUS_EVENT_UNPLUGGED,
USBD_BUS_EVENT_SUSPENDED,
|
