nrf5/modules: Updating rtc module with non-const machine object list in order to allow setting callback function in constructor.

This commit is contained in:
Glenn Ruben Bakke 2017-03-06 20:09:04 +01:00
parent 87e1616488
commit f50a56dbb5
1 changed files with 1 additions and 1 deletions

View File

@ -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},
};