From 445e0e92d874d9af5b4e679328e07ec32e79b07a Mon Sep 17 00:00:00 2001 From: Francisco Molina Date: Fri, 14 Aug 2020 15:19:26 +0200 Subject: [PATCH 4/5] uwb_dw1000/dw1000_hal: replace OS_%_CRTICAL with DPL_%_CRITICAL --- hw/drivers/uwb/uwb_dw1000/src/dw1000_hal.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/hw/drivers/uwb/uwb_dw1000/src/dw1000_hal.c b/hw/drivers/uwb/uwb_dw1000/src/dw1000_hal.c index 90ccd6c..30539a5 100644 --- a/hw/drivers/uwb/uwb_dw1000/src/dw1000_hal.c +++ b/hw/drivers/uwb/uwb_dw1000/src/dw1000_hal.c @@ -723,7 +723,7 @@ hal_dw1000_wakeup(struct _dw1000_dev_instance_t * inst) goto early_exit; } - OS_ENTER_CRITICAL(sr); + DPL_ENTER_CRITICAL(sr); hal_spi_disable(inst->spi_num); hal_gpio_write(inst->ss_pin, 0); @@ -738,7 +738,7 @@ hal_dw1000_wakeup(struct _dw1000_dev_instance_t * inst) // (check PLL bit in IRQ?) dpl_cputime_delay_usecs(5000); - OS_EXIT_CRITICAL(sr); + DPL_EXIT_CRITICAL(sr); rc = dpl_sem_release(inst->spi_sem); assert(rc == DPL_OK); -- 2.28.0