formatting

This commit is contained in:
hathach
2015-05-01 18:45:22 +07:00
parent c73907f831
commit 62ae417add
10 changed files with 86 additions and 43 deletions
+4 -2
View File
@@ -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),
+2 -1
View File
@@ -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;
+2 -1
View File
@@ -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,