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:
parent
87e1616488
commit
f50a56dbb5
@ -44,7 +44,7 @@ typedef struct _machine_rtc_obj_t {
|
|||||||
RTC_HandleTypeDef RTCHandle0 = {.config.p_instance = NULL, .id = 0};
|
RTC_HandleTypeDef RTCHandle0 = {.config.p_instance = NULL, .id = 0};
|
||||||
RTC_HandleTypeDef RTCHandle1 = {.config.p_instance = NULL, .id = 1};
|
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}, &RTCHandle0},
|
||||||
{{&machine_rtc_type}, &RTCHandle1},
|
{{&machine_rtc_type}, &RTCHandle1},
|
||||||
};
|
};
|
||||||
|
Loading…
Reference in New Issue
Block a user