Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
François Revol
firmware
Commits
ea085187
Commit
ea085187
authored
Aug 16, 2019
by
schneider
Browse files
fix(sdk): ssec is 12 bits long
parent
604a5036
Changes
2
Show whitespace changes
Inline
Side-by-side
lib/sdk/Libraries/MAX32665PeriphDriver/Include/rtc.h
View file @
ea085187
...
@@ -162,7 +162,7 @@ int RTC_DisableRTCE(mxc_rtc_regs_t *rtc);
...
@@ -162,7 +162,7 @@ int RTC_DisableRTCE(mxc_rtc_regs_t *rtc);
*@return #E_SUCCESS If function is successful.
*@return #E_SUCCESS If function is successful.
*@return #E_BUSY If RTC is busy.
*@return #E_BUSY If RTC is busy.
*/
*/
int
RTC_Init
(
mxc_rtc_regs_t
*
rtc
,
uint32_t
sec
,
uint
8
_t
ssec
,
sys_cfg_rtc_t
*
sys_cfg
);
int
RTC_Init
(
mxc_rtc_regs_t
*
rtc
,
uint32_t
sec
,
uint
16
_t
ssec
,
sys_cfg_rtc_t
*
sys_cfg
);
/**
/**
* @brief Allow generation of Square Wave on the SQW pin
* @brief Allow generation of Square Wave on the SQW pin
...
...
lib/sdk/Libraries/MAX32665PeriphDriver/Source/rtc.c
View file @
ea085187
...
@@ -196,7 +196,7 @@ int RTC_DisableRTCE(mxc_rtc_regs_t *rtc)
...
@@ -196,7 +196,7 @@ int RTC_DisableRTCE(mxc_rtc_regs_t *rtc)
// *****************************************************************************
// *****************************************************************************
int
RTC_Init
(
mxc_rtc_regs_t
*
rtc
,
uint32_t
sec
,
uint
8
_t
ssec
,
sys_cfg_rtc_t
*
sys_cfg
)
int
RTC_Init
(
mxc_rtc_regs_t
*
rtc
,
uint32_t
sec
,
uint
16
_t
ssec
,
sys_cfg_rtc_t
*
sys_cfg
)
{
{
SYS_RTCClockEnable
(
sys_cfg
);
SYS_RTCClockEnable
(
sys_cfg
);
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment