aboutsummaryrefslogtreecommitdiff
path: root/lib/usb/usb_private.h
diff options
context:
space:
mode:
authorUwe Hermann2010-12-29 17:28:06 +0100
committerUwe Hermann2010-12-29 17:28:06 +0100
commitc39eb69e4d923c9c5fa8be53252ee0ffd15dffb9 (patch)
treee4f194d9c1720c4a1318c4f73e9de7dfa7da5db8 /lib/usb/usb_private.h
parent6a16711bee34e0445a95a9cbffc17fdd1d580950 (diff)
Replace uint8_t with u8 et al, fix whitespace.
Diffstat (limited to 'lib/usb/usb_private.h')
-rw-r--r--lib/usb/usb_private.h28
1 files changed, 14 insertions, 14 deletions
diff --git a/lib/usb/usb_private.h b/lib/usb/usb_private.h
index 453ed77..0780003 100644
--- a/lib/usb/usb_private.h
+++ b/lib/usb/usb_private.h
@@ -30,13 +30,13 @@ extern struct _usbd_device {
const struct usb_config_descriptor *config;
const char **strings;
- uint8_t *ctrl_buf; /**< Internal buffer used for control transfers */
- uint16_t ctrl_buf_len;
+ u8 *ctrl_buf; /**< Internal buffer used for control transfers */
+ u16 ctrl_buf_len;
- uint8_t current_address;
- uint8_t current_config;
+ u8 current_address;
+ u8 current_config;
- uint16_t pm_top; /**< Top of allocated endpoint buffer memory */
+ u16 pm_top; /**< Top of allocated endpoint buffer memory */
/* User callback functions for various USB events */
void (*user_callback_reset)(void);
@@ -45,14 +45,14 @@ extern struct _usbd_device {
struct user_control_callback {
usbd_control_callback cb;
- uint8_t type;
- uint8_t type_mask;
+ u8 type;
+ u8 type_mask;
} user_control_callback[MAX_USER_CONTROL_CALLBACK];
- void (*user_callback_ctr[8][3])(uint8_t ea);
+ void (*user_callback_ctr[8][3])(u8 ea);
/* User callback function for some standard USB function hooks */
- void (*user_callback_set_config)(uint16_t wValue);
+ void (*user_callback_set_config)(u16 wValue);
} _usbd_device;
enum _usbd_transaction {
@@ -61,18 +61,18 @@ enum _usbd_transaction {
USB_TRANSACTION_SETUP,
};
-void _usbd_control_in(uint8_t ea);
-void _usbd_control_out(uint8_t ea);
-void _usbd_control_setup(uint8_t ea);
+void _usbd_control_in(u8 ea);
+void _usbd_control_out(u8 ea);
+void _usbd_control_setup(u8 ea);
int _usbd_standard_request(struct usb_setup_data *req,
- uint8_t **buf, uint16_t *len);
+ u8 **buf, u16 *len);
void _usbd_reset(void);
/* Functions provided by the hardware abstraction */
void _usbd_hw_init(void);
-void _usbd_hw_set_address(uint8_t addr);
+void _usbd_hw_set_address(u8 addr);
void _usbd_hw_endpoints_reset(void);
#endif