add dcd_get_microframe()
This commit is contained in:
		| @@ -124,6 +124,12 @@ 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 USB->DEVICE.FNUM & (TU_BIT(14) - 1); | ||||
| } | ||||
|  | ||||
| /*------------------------------------------------------------------*/ | ||||
| /* DCD Endpoint port | ||||
|  *------------------------------------------------------------------*/ | ||||
|   | ||||
| @@ -129,6 +129,12 @@ 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 USB->DEVICE.FNUM & (TU_BIT(14) - 1); | ||||
| } | ||||
|  | ||||
| /*------------------------------------------------------------------*/ | ||||
| /* DCD Endpoint port | ||||
|  *------------------------------------------------------------------*/ | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 hathach
					hathach