diff options
| author | hathach <[email protected]> | 2018-08-23 20:54:51 +0700 |
|---|---|---|
| committer | hathach <[email protected]> | 2018-08-23 20:54:51 +0700 |
| commit | 23c7c2102b8b5b34fb11481803b61c961e82a583 (patch) | |
| tree | e3077c65aa5de4860eb2f8bad0608913f0ec601c /src/device | |
| parent | 4e349c798d4a7a3a67002176f635cc2ac68a39c8 (diff) | |
fix compiler warnings
Diffstat (limited to 'src/device')
| -rw-r--r-- | src/device/dcd.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/device/dcd.h b/src/device/dcd.h index cbce366cc..e246f0521 100644 --- a/src/device/dcd.h +++ b/src/device/dcd.h @@ -96,10 +96,10 @@ void dcd_edpt_clear_stall (uint8_t rhport, uint8_t ep_addr); bool dcd_edpt_stalled (uint8_t rhport, uint8_t ep_addr);
//------------- Control Endpoint -------------//
-bool dcd_control_xfer (uint8_t rhport, tusb_dir_t dir, uint8_t * buffer, uint16_t length);
+bool dcd_control_xfer (uint8_t rhport, uint8_t dir, uint8_t * buffer, uint16_t length);
// Note input dir is value of direction bit in setup packet (i.e DATA stage direction)
-static inline bool dcd_control_status(uint8_t rhport, tusb_dir_t dir)
+static inline bool dcd_control_status(uint8_t rhport, uint8_t dir)
{
// status direction is reversed to one in the setup packet
return dcd_control_xfer(rhport, 1-dir, NULL, 0);
|
