1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2024-12-29 04:50:03 +01:00
RIOT/pkg/uwb-dw1000/patches/0003-uwb_dw1000-dw1000_hal-define-even-if-DW1000_DEVICE_0.patch
2022-03-01 15:02:47 +01:00

36 lines
1001 B
Diff

From 8bb0bafd2e0cca88e96fd678b83a0a1ed14bd1d3 Mon Sep 17 00:00:00 2001
From: Francisco Molina <femolina@uc.cl>
Date: Fri, 14 Aug 2020 13:56:25 +0200
Subject: [PATCH 3/6] uwb_dw1000/dw1000_hal: define even if DW1000_DEVICE_0 is
unset
In RIOT multiple DW1000 devices will be speficied thorugh a link
list so `hal_dw1000_inst` must be customly defined.
The rest of the api should still be defined
---
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 a5e24af..bdc0656 100644
--- a/hw/drivers/uwb/uwb_dw1000/src/dw1000_hal.c
+++ b/hw/drivers/uwb/uwb_dw1000/src/dw1000_hal.c
@@ -262,6 +262,8 @@ hal_dw1000_inst(uint8_t idx)
return 0;
}
+#endif
+
/**
* API to reset all the gpio pins.
*
@@ -756,5 +758,3 @@ hal_dw1000_get_rst(struct _dw1000_dev_instance_t * inst)
{
return hal_gpio_read(inst->rst_pin);
}
-
-#endif
--
2.32.0