39.1.3.13 usb_d_ep0_init
Initialize the endpoint 0.
int32_t usb_d_ep0_init(
const uint8_t max_pkt_size
)
Note that endpoint 0 must be initialized as control endpoint.
Parameters
- max_pkt_size
-
Type: const uint8_t
Max. packet size of EP0.
Returns
Type: int32_t
Operation status.
- 0
-
Success.
- <0
-
Error code.