@@ -36,7 +36,7 @@ extern "C" {
36
36
/**
37
37
* USB host support runtime context
38
38
*/
39
- struct usbh_contex {
39
+ struct usbh_context {
40
40
/** Name of the USB device */
41
41
const char * name ;
42
42
/** Access mutex */
@@ -53,7 +53,7 @@ struct usbh_contex {
53
53
54
54
#define USBH_CONTROLLER_DEFINE (device_name , uhc_dev ) \
55
55
SYS_BITARRAY_DEFINE_STATIC(ba_##device_name, 128); \
56
- static STRUCT_SECTION_ITERABLE(usbh_contex , device_name) = { \
56
+ static STRUCT_SECTION_ITERABLE(usbh_context , device_name) = { \
57
57
.name = STRINGIFY(device_name), \
58
58
.mutex = Z_MUTEX_INITIALIZER(device_name.mutex), \
59
59
.dev = uhc_dev, \
@@ -80,20 +80,20 @@ struct usbh_class_data {
80
80
struct usbh_code_triple code ;
81
81
82
82
/** Initialization of the class implementation */
83
- /* int (*init)(struct usbh_contex *const uhs_ctx); */
83
+ /* int (*init)(struct usbh_context *const uhs_ctx); */
84
84
/** Request completion event handler */
85
- int (* request )(struct usbh_contex * const uhs_ctx ,
85
+ int (* request )(struct usbh_context * const uhs_ctx ,
86
86
struct uhc_transfer * const xfer , int err );
87
87
/** Device connected handler */
88
- int (* connected )(struct usbh_contex * const uhs_ctx );
88
+ int (* connected )(struct usbh_context * const uhs_ctx );
89
89
/** Device removed handler */
90
- int (* removed )(struct usbh_contex * const uhs_ctx );
90
+ int (* removed )(struct usbh_context * const uhs_ctx );
91
91
/** Bus remote wakeup handler */
92
- int (* rwup )(struct usbh_contex * const uhs_ctx );
92
+ int (* rwup )(struct usbh_context * const uhs_ctx );
93
93
/** Bus suspended handler */
94
- int (* suspended )(struct usbh_contex * const uhs_ctx );
94
+ int (* suspended )(struct usbh_context * const uhs_ctx );
95
95
/** Bus resumed handler */
96
- int (* resumed )(struct usbh_contex * const uhs_ctx );
96
+ int (* resumed )(struct usbh_context * const uhs_ctx );
97
97
};
98
98
99
99
/**
@@ -109,7 +109,7 @@ struct usbh_class_data {
109
109
*
110
110
* @return 0 on success, other values on fail.
111
111
*/
112
- int usbh_init (struct usbh_contex * uhs_ctx );
112
+ int usbh_init (struct usbh_context * uhs_ctx );
113
113
114
114
/**
115
115
* @brief Enable the USB host support and class instances
@@ -120,7 +120,7 @@ int usbh_init(struct usbh_contex *uhs_ctx);
120
120
*
121
121
* @return 0 on success, other values on fail.
122
122
*/
123
- int usbh_enable (struct usbh_contex * uhs_ctx );
123
+ int usbh_enable (struct usbh_context * uhs_ctx );
124
124
125
125
/**
126
126
* @brief Disable the USB host support
@@ -131,7 +131,7 @@ int usbh_enable(struct usbh_contex *uhs_ctx);
131
131
*
132
132
* @return 0 on success, other values on fail.
133
133
*/
134
- int usbh_disable (struct usbh_contex * uhs_ctx );
134
+ int usbh_disable (struct usbh_context * uhs_ctx );
135
135
136
136
/**
137
137
* @brief Shutdown the USB host support
@@ -142,7 +142,7 @@ int usbh_disable(struct usbh_contex *uhs_ctx);
142
142
*
143
143
* @return 0 on success, other values on fail.
144
144
*/
145
- int usbh_shutdown (struct usbh_contex * const uhs_ctx );
145
+ int usbh_shutdown (struct usbh_context * const uhs_ctx );
146
146
147
147
/**
148
148
* @}
0 commit comments