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
+10 -1
View File
@@ -187,7 +187,7 @@ static void xact_in_prepare(uint8_t epnum)
}
//--------------------------------------------------------------------+
// Tinyusb DCD API
// Controller API
//--------------------------------------------------------------------+
bool dcd_init (uint8_t rhport)
{
@@ -221,6 +221,15 @@ void dcd_set_config (uint8_t rhport, uint8_t config_num)
// Nothing to do
}
uint32_t dcd_get_microframe(uint8_t rhport)
{
(void) rhport;
return NRF_USBD->FRAMECNTR << 3;
}
//--------------------------------------------------------------------+
// Endpoint API
//--------------------------------------------------------------------+
bool dcd_edpt_open (uint8_t rhport, tusb_desc_endpoint_t const * desc_edpt)
{
(void) rhport;