more verify and assert clean up

This commit is contained in:
hathach
2018-03-29 13:28:30 +07:00
parent 1d33d4e072
commit d63d5d6160
4 changed files with 15 additions and 36 deletions

View File

@@ -958,7 +958,7 @@ static void qhd_init(ehci_qhd_t *p_qhd, uint8_t dev_addr, uint16_t max_packet_si
{
if (TUSB_SPEED_HIGH == p_qhd->endpoint_speed)
{
ASSERT_INT_WITHIN(1, 16, interval, VOID_RETURN);
TU_ASSERT( interval <= 16, VOID_RETURN);
if ( interval < 4) // sub milisecond interval
{
p_qhd->interval_ms = 0;