add nrf52 walkaround for errata 104, 171, 187.

clean up osal_none
This commit is contained in:
hathach
2018-04-07 15:03:56 +07:00
parent b9fc708e41
commit 9be8e7bef6
5 changed files with 206 additions and 64 deletions
+27
View File
@@ -78,6 +78,33 @@ void tusb_hal_int_disable(uint8_t rhport);
// Only required to implement if using No RTOS (osal_none)
uint32_t tusb_hal_millis(void);
// Enable all ports' interrupt
static inline void tusb_hal_int_enable_all(void)
{
#ifdef TUSB_CFG_CONTROLLER_0_MODE
tusb_hal_int_enable(0);
#endif
#ifdef TUSB_CFG_CONTROLLER_0_MODE
tusb_hal_int_enable(1);
#endif
}
// Disable all ports' interrupt
static inline void tusb_hal_int_disable_all(void)
{
#ifdef TUSB_CFG_CONTROLLER_0_MODE
tusb_hal_int_disable(0);
#endif
#ifdef TUSB_CFG_CONTROLLER_0_MODE
tusb_hal_int_disable(1);
#endif
}
#ifdef __cplusplus
}
#endif