summaryrefslogtreecommitdiff
path: root/src/portable/nordic
diff options
context:
space:
mode:
authorhathach <[email protected]>2018-12-21 12:46:20 +0700
committerhathach <[email protected]>2018-12-21 12:46:20 +0700
commit6f17b4e01973185beb2876f827a76e4200ee0ef3 (patch)
tree83259383dfcbe984b846309e2757e0581677b539 /src/portable/nordic
parent426064201a2a28bf9c21f2cb05f9bd0fe2213ac7 (diff)
change to dcd_get_frame_number
Diffstat (limited to 'src/portable/nordic')
-rw-r--r--src/portable/nordic/nrf5x/dcd_nrf5x.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/portable/nordic/nrf5x/dcd_nrf5x.c b/src/portable/nordic/nrf5x/dcd_nrf5x.c
index 1e0c34743..49984eae8 100644
--- a/src/portable/nordic/nrf5x/dcd_nrf5x.c
+++ b/src/portable/nordic/nrf5x/dcd_nrf5x.c
@@ -221,10 +221,10 @@ void dcd_set_config (uint8_t rhport, uint8_t config_num)
// Nothing to do
}
-uint32_t dcd_get_microframe(uint8_t rhport)
+uint32_t dcd_get_frame_number(uint8_t rhport)
{
(void) rhport;
- return NRF_USBD->FRAMECNTR << 3;
+ return NRF_USBD->FRAMECNTR;
}
//--------------------------------------------------------------------+