add dcd_get_microframe()

This commit is contained in:
hathach
2018-12-17 12:14:11 +07:00
parent 455da57f9d
commit 902697ca07
10 changed files with 58 additions and 23 deletions
+6
View File
@@ -227,6 +227,12 @@ void dcd_set_config(uint8_t rhport, uint8_t config_num)
sie_write(SIE_CMDCODE_CONFIGURE_DEVICE, 1, 1);
}
uint32_t dcd_get_microframe(uint8_t rhport)
{
(void) rhport;
return ((uint32_t) sie_read(SIE_CMDCODE_READ_FRAME_NUMBER)) << 3;
}
//--------------------------------------------------------------------+
// CONTROL HELPER
//--------------------------------------------------------------------+