summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGlenn Ruben Bakke <glennbakke@gmail.com>2017-03-06 20:09:04 +0100
committerGlenn Ruben Bakke <glennbakke@gmail.com>2017-03-06 20:09:04 +0100
commitf50a56dbb58f2089fc75ab3a4f5f83e1395bdc21 (patch)
tree88c761201bbff60587795e5c7d37a29fef65b3f0
parent87e16164882eb990498da604594d11f4eb3fdf27 (diff)
nrf5/modules: Updating rtc module with non-const machine object list in order to allow setting callback function in constructor.
-rw-r--r--nrf5/modules/machine/rtc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/nrf5/modules/machine/rtc.c b/nrf5/modules/machine/rtc.c
index 7ccf599b8..de27d213f 100644
--- a/nrf5/modules/machine/rtc.c
+++ b/nrf5/modules/machine/rtc.c
@@ -44,7 +44,7 @@ typedef struct _machine_rtc_obj_t {
RTC_HandleTypeDef RTCHandle0 = {.config.p_instance = NULL, .id = 0};
RTC_HandleTypeDef RTCHandle1 = {.config.p_instance = NULL, .id = 1};
-STATIC const machine_rtc_obj_t machine_rtc_obj[] = {
+STATIC machine_rtc_obj_t machine_rtc_obj[] = {
{{&machine_rtc_type}, &RTCHandle0},
{{&machine_rtc_type}, &RTCHandle1},
};