Skip to content
Snippets Groups Projects
Commit dcd73ce8 authored by schneider's avatar schneider
Browse files

chore(rtc): make linter happy

parent c44b742b
No related branches found
No related tags found
1 merge request!397Update SDK to 0.2.1-12
......@@ -84,12 +84,8 @@ int hardware_early_init(void)
PB_Init();
/* Enable 32 kHz output */
while (RTC_SquareWave(
MXC_RTC,
SQUARE_WAVE_ENABLED,
F_32KHZ,
NULL) == E_BUSY
)
while (RTC_SquareWave(MXC_RTC, SQUARE_WAVE_ENABLED, F_32KHZ, NULL) ==
E_BUSY)
;
/* If we don't have a valid time yet, set it to 2019-01-01 */
......
......@@ -60,12 +60,8 @@ void card10_init(void)
TMR_Delay(MXC_TMR0, MSEC(1000), 0);
// Enable 32 kHz output
while (RTC_SquareWave(
MXC_RTC,
SQUARE_WAVE_ENABLED,
F_32KHZ,
NULL) == E_BUSY
)
while (RTC_SquareWave(MXC_RTC, SQUARE_WAVE_ENABLED, F_32KHZ, NULL) ==
E_BUSY)
;
/* If we don't have a valid time yet, set it to 2019-01-01 */
if (RTC_GetSecond() < 1546300800L) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment