Merge pull request #292 from bwisn/bwisn_ht32fixusb
HT32: add missing fields in USBEndpointConfig, to make it compatible …
This commit is contained in:
commit
9e4deb49e8
|
@ -185,6 +185,17 @@ typedef struct {
|
|||
*/
|
||||
USBOutEndpointState *out_state;
|
||||
/* End of the mandatory fields.*/
|
||||
/**
|
||||
* @brief Reserved field, not currently used.
|
||||
* @note Initialize this field to 1 in order to be forward compatible.
|
||||
*/
|
||||
uint16_t ep_buffers;
|
||||
/**
|
||||
* @brief Pointer to a buffer for setup packets.
|
||||
* @details Setup packets require a dedicated 8-bytes buffer, set this
|
||||
* field to @p NULL for non-control endpoints.
|
||||
*/
|
||||
uint8_t *setup_buf;
|
||||
} USBEndpointConfig;
|
||||
|
||||
/**
|
||||
|
|
Loading…
Reference in New Issue