ble_mesh: Remove useless parameters of lock/unlock

This commit is contained in:
lly
2019-12-14 16:28:22 +08:00
parent d2bc597e9f
commit e4223df60f
4 changed files with 23 additions and 35 deletions

View File

@@ -37,16 +37,12 @@ typedef struct alarm_t {
int64_t deadline_us;
} osi_alarm_t;
unsigned int bt_mesh_irq_lock(void)
void bt_mesh_irq_lock(void)
{
/* Changed by Espressif. In BLE Mesh, in order to improve the real-time
* requirements of bt controller, we use task lock instead of IRQ lock.
*/
osi_mutex_lock(&bm_irq_lock, OSI_MUTEX_MAX_TIMEOUT);
return 0;
}
void bt_mesh_irq_unlock(unsigned int key)
void bt_mesh_irq_unlock(void)
{
osi_mutex_unlock(&bm_irq_lock);
}