File tree 1 file changed +9
-1
lines changed
examples/NonReg/RTC/RTC_Tests 1 file changed +9
-1
lines changed Original file line number Diff line number Diff line change @@ -38,7 +38,11 @@ static const char* mytime = __TIME__;
38
38
clk = RTCCLK / ((predA +1) * (predS +1))
39
39
clk = 1000000 / ((99 +1) * (9999+1)) = 1 Hz
40
40
*/
41
+ #if defined(STM32F1xx)
42
+ static uint32_t userPredA = 99 ;
43
+ #else
41
44
static int8_t userPredA = 99 ;
45
+ #endif /* STM32F1xx */
42
46
static int16_t userPredS = 9999 ;
43
47
44
48
/* */
@@ -106,7 +110,11 @@ void loop()
106
110
break ;
107
111
}
108
112
Serial.println (" Testing asynchronous and synchronous prescaler setting" );
113
+ #if defined(STM32F1xx)
114
+ uint32_t a;
115
+ #else
109
116
int8_t a;
117
+ #endif /* STM32F1xx */
110
118
int16_t s;
111
119
rtc.getPrediv (&a, &s);
112
120
Serial.print (" Async/Sync for default LSI clock: " );
@@ -254,4 +262,4 @@ void alarmMatch(void *data)
254
262
Serial.println (" Unknown STM32RTC::Alarm_Match type" );
255
263
break ;
256
264
}
257
- }
265
+ }
You can’t perform that action at this time.
0 commit comments