rp2040: requested change from TU_MIN to tu_min16
This commit is contained in:
@@ -64,7 +64,7 @@ static struct hw_endpoint *hw_endpoint_get_by_addr(uint8_t ep_addr)
|
|||||||
}
|
}
|
||||||
static void _hw_endpoint_alloc(struct hw_endpoint *ep)
|
static void _hw_endpoint_alloc(struct hw_endpoint *ep)
|
||||||
{
|
{
|
||||||
uint16_t size = TU_MIN(64, ep->wMaxPacketSize);
|
uint16_t size = tu_min16(64, ep->wMaxPacketSize);
|
||||||
|
|
||||||
// Assumes single buffered for now
|
// Assumes single buffered for now
|
||||||
ep->hw_data_buf = next_buffer_ptr;
|
ep->hw_data_buf = next_buffer_ptr;
|
||||||
|
Reference in New Issue
Block a user