Merge pull request #292 from bwisn/bwisn_ht32fixusb

HT32: add missing fields in USBEndpointConfig, to make it compatible …
This commit is contained in:
Fabien Poussin 2021-09-11 00:11:00 +02:00 committed by GitHub
commit 9e4deb49e8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 11 additions and 0 deletions

View File

@ -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;
/**