From ea085187ec207304389c6c7778327241775da0ba Mon Sep 17 00:00:00 2001 From: schneider <schneider@blinkenlichts.net> Date: Fri, 16 Aug 2019 01:20:47 +0200 Subject: [PATCH] fix(sdk): ssec is 12 bits long --- lib/sdk/Libraries/MAX32665PeriphDriver/Include/rtc.h | 2 +- lib/sdk/Libraries/MAX32665PeriphDriver/Source/rtc.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/sdk/Libraries/MAX32665PeriphDriver/Include/rtc.h b/lib/sdk/Libraries/MAX32665PeriphDriver/Include/rtc.h index 79d01f12..0778e5db 100644 --- a/lib/sdk/Libraries/MAX32665PeriphDriver/Include/rtc.h +++ b/lib/sdk/Libraries/MAX32665PeriphDriver/Include/rtc.h @@ -162,7 +162,7 @@ int RTC_DisableRTCE(mxc_rtc_regs_t *rtc); *@return #E_SUCCESS If function is successful. *@return #E_BUSY If RTC is busy. */ -int RTC_Init(mxc_rtc_regs_t *rtc, uint32_t sec, uint8_t ssec, sys_cfg_rtc_t *sys_cfg); +int RTC_Init(mxc_rtc_regs_t *rtc, uint32_t sec, uint16_t ssec, sys_cfg_rtc_t *sys_cfg); /** * @brief Allow generation of Square Wave on the SQW pin diff --git a/lib/sdk/Libraries/MAX32665PeriphDriver/Source/rtc.c b/lib/sdk/Libraries/MAX32665PeriphDriver/Source/rtc.c index 55b30d46..a08f45c3 100644 --- a/lib/sdk/Libraries/MAX32665PeriphDriver/Source/rtc.c +++ b/lib/sdk/Libraries/MAX32665PeriphDriver/Source/rtc.c @@ -196,7 +196,7 @@ int RTC_DisableRTCE(mxc_rtc_regs_t *rtc) // ***************************************************************************** -int RTC_Init(mxc_rtc_regs_t *rtc, uint32_t sec, uint8_t ssec, sys_cfg_rtc_t *sys_cfg) +int RTC_Init(mxc_rtc_regs_t *rtc, uint32_t sec, uint16_t ssec, sys_cfg_rtc_t *sys_cfg) { SYS_RTCClockEnable(sys_cfg); -- GitLab