mirror of
https://github.com/hathach/tinyusb.git
synced 2025-01-17 05:32:55 +08:00
fix samd build
This commit is contained in:
parent
902697ca07
commit
426064201a
@ -127,7 +127,7 @@ void dcd_set_config (uint8_t rhport, uint8_t config_num)
|
||||
uint32_t dcd_get_microframe(uint8_t rhport)
|
||||
{
|
||||
(void) rhport;
|
||||
return USB->DEVICE.FNUM & (TU_BIT(14) - 1);
|
||||
return USB->DEVICE.FNUM.reg & (TU_BIT(14) - 1);
|
||||
}
|
||||
|
||||
/*------------------------------------------------------------------*/
|
||||
|
@ -132,7 +132,7 @@ void dcd_set_config (uint8_t rhport, uint8_t config_num)
|
||||
uint32_t dcd_get_microframe(uint8_t rhport)
|
||||
{
|
||||
(void) rhport;
|
||||
return USB->DEVICE.FNUM & (TU_BIT(14) - 1);
|
||||
return USB->DEVICE.FNUM.reg & (TU_BIT(14) - 1);
|
||||
}
|
||||
|
||||
/*------------------------------------------------------------------*/
|
||||
|
Loading…
x
Reference in New Issue
Block a user