In file included from /tmp/arduino_build_576068/sketch/STM32RTC.cpp:39:
/tmp/arduino_build_576068/sketch/STM32RTC.h:77:17: error: 'HOUR_FORMAT_12' was not declared in this scope; did you mean 'RTC_HOURFORMAT_12'?
77 | HOUR_12 = HOUR_FORMAT_12,
| ^~~~~~~~~~~~~~
| RTC_HOURFORMAT_12
/tmp/arduino_build_576068/sketch/STM32RTC.h:78:17: error: 'HOUR_FORMAT_24' was not declared in this scope; did you mean 'RTC_HOURFORMAT_24'?
78 | HOUR_24 = HOUR_FORMAT_24
| ^~~~~~~~~~~~~~
| RTC_HOURFORMAT_24
/tmp/arduino_build_576068/sketch/STM32RTC.h:82:12: error: 'HOUR_AM' was not declared in this scope; did you mean 'HOUR_24'?
82 | AM = HOUR_AM,
| ^~~~~~~
| HOUR_24
/tmp/arduino_build_576068/sketch/STM32RTC.h:83:12: error: 'HOUR_PM' was not declared in this scope; did you mean 'HOUR_24'?
83 | PM = HOUR_PM
| ^~~~~~~
| HOUR_24
/tmp/arduino_build_576068/sketch/STM32RTC.h:87:28: error: 'OFF_MSK' was not declared in this scope
87 | MATCH_OFF = OFF_MSK, // Never
| ^~~~~~~
/tmp/arduino_build_576068/sketch/STM32RTC.h:88:28: error: 'SS_MSK' was not declared in this scope
88 | MATCH_SS = SS_MSK, // Every Minute
| ^~~~~~
/tmp/arduino_build_576068/sketch/STM32RTC.h:89:28: error: 'SS_MSK' was not declared in this scope
89 | MATCH_MMSS = SS_MSK | MM_MSK, // Every Hour
| ^~~~~~
/tmp/arduino_build_576068/sketch/STM32RTC.h:89:37: error: 'MM_MSK' was not declared in this scope
89 | MATCH_MMSS = SS_MSK | MM_MSK, // Every Hour
| ^~~~~~
/tmp/arduino_build_576068/sketch/STM32RTC.h:90:28: error: 'SS_MSK' was not declared in this scope
90 | MATCH_HHMMSS = SS_MSK | MM_MSK | HH_MSK, // Every Day
| ^~~~~~
In file included from /home/brian/Brian/Documentation/Microcontrollers/STM32/Software/Libraries/STM32RTC-master/examples/SimpleRTC/SimpleRTC.ino:17:
/home/brian/Brian/Documentation/Microcontrollers/STM32/Software/Libraries/STM32RTC-master/examples/SimpleRTC/STM32RTC.h:77:17: error: 'HOUR_FORMAT_12' was not declared in this scope; did you mean 'RTC_HOURFORMAT_12'?
77 | HOUR_12 = HOUR_FORMAT_12,
| ^~~~~~~~~~~~~~
| RTC_HOURFORMAT_12
/tmp/arduino_build_576068/sketch/STM32RTC.h:90:37: error: 'MM_MSK' was not declared in this scope
90 | MATCH_HHMMSS = SS_MSK | MM_MSK | HH_MSK, // Every Day
| ^~~~~~
/tmp/arduino_build_576068/sketch/STM32RTC.h:90:46: error: 'HH_MSK' was not declared in this scope
90 | MATCH_HHMMSS = SS_MSK | MM_MSK | HH_MSK, // Every Day
| ^~~~~~
/tmp/arduino_build_576068/sketch/STM32RTC.h:91:28: error: 'SS_MSK' was not declared in this scope
91 | MATCH_DHHMMSS = SS_MSK | MM_MSK | HH_MSK | D_MSK, // Every Month
| ^~~~~~
/tmp/arduino_build_576068/sketch/STM32RTC.h:91:37: error: 'MM_MSK' was not declared in this scope
91 | MATCH_DHHMMSS = SS_MSK | MM_MSK | HH_MSK | D_MSK, // Every Month
| ^~~~~~
/tmp/arduino_build_576068/sketch/STM32RTC.h:91:46: error: 'HH_MSK' was not declared in this scope
91 | MATCH_DHHMMSS = SS_MSK | MM_MSK | HH_MSK | D_MSK, // Every Month
| ^~~~~~
/tmp/arduino_build_576068/sketch/STM32RTC.h:91:55: error: 'D_MSK' was not declared in this scope
91 | MATCH_DHHMMSS = SS_MSK | MM_MSK | HH_MSK | D_MSK, // Every Month
| ^~~~~
/home/brian/Brian/Documentation/Microcontrollers/STM32/Software/Libraries/STM32RTC-master/examples/SimpleRTC/STM32RTC.h:78:17: error: 'HOUR_FORMAT_24' was not declared in this scope; did you mean 'RTC_HOURFORMAT_24'?
78 | HOUR_24 = HOUR_FORMAT_24
| ^~~~~~~~~~~~~~
| RTC_HOURFORMAT_24
/home/brian/Brian/Documentation/Microcontrollers/STM32/Software/Libraries/STM32RTC-master/examples/SimpleRTC/STM32RTC.h:82:12: error: 'HOUR_AM' was not declared in this scope; did you mean 'HOUR_24'?
82 | AM = HOUR_AM,
| ^~~~~~~
| HOUR_24
/tmp/arduino_build_576068/sketch/STM32RTC.h:94:28: error: 'SS_MSK' was not declared in this scope
94 | MATCH_MMDDHHMMSS = SS_MSK | MM_MSK | HH_MSK | D_MSK | M_MSK,
| ^~~~~~
/home/brian/Brian/Documentation/Microcontrollers/STM32/Software/Libraries/STM32RTC-master/examples/SimpleRTC/STM32RTC.h:83:12: error: 'HOUR_PM' was not declared in this scope; did you mean 'HOUR_24'?
83 | PM = HOUR_PM
| ^~~~~~~
| HOUR_24
/tmp/arduino_build_576068/sketch/STM32RTC.h:94:37: error: 'MM_MSK' was not declared in this scope
94 | MATCH_MMDDHHMMSS = SS_MSK | MM_MSK | HH_MSK | D_MSK | M_MSK,
| ^~~~~~
/home/brian/Brian/Documentation/Microcontrollers/STM32/Software/Libraries/STM32RTC-master/examples/SimpleRTC/STM32RTC.h:87:28: error: 'OFF_MSK' was not declared in this scope
87 | MATCH_OFF = OFF_MSK, // Never
| ^~~~~~~
/tmp/arduino_build_576068/sketch/STM32RTC.h:94:46: error: 'HH_MSK' was not declared in this scope
94 | MATCH_MMDDHHMMSS = SS_MSK | MM_MSK | HH_MSK | D_MSK | M_MSK,
| ^~~~~~
/home/brian/Brian/Documentation/Microcontrollers/STM32/Software/Libraries/STM32RTC-master/examples/SimpleRTC/STM32RTC.h:88:28: error: 'SS_MSK' was not declared in this scope
88 | MATCH_SS = SS_MSK, // Every Minute
| ^~~~~~
/tmp/arduino_build_576068/sketch/STM32RTC.h:94:55: error: 'D_MSK' was not declared in this scope
94 | MATCH_MMDDHHMMSS = SS_MSK | MM_MSK | HH_MSK | D_MSK | M_MSK,
| ^~~~~
/tmp/arduino_build_576068/sketch/STM32RTC.h:94:63: error: 'M_MSK' was not declared in this scope
94 | MATCH_MMDDHHMMSS = SS_MSK | MM_MSK | HH_MSK | D_MSK | M_MSK,
| ^~~~~
/home/brian/Brian/Documentation/Microcontrollers/STM32/Software/Libraries/STM32RTC-master/examples/SimpleRTC/STM32RTC.h:89:28: error: 'SS_MSK' was not declared in this scope
89 | MATCH_MMSS = SS_MSK | MM_MSK, // Every Hour
| ^~~~~~
/tmp/arduino_build_576068/sketch/STM32RTC.h:95:28: error: 'SS_MSK' was not declared in this scope
95 | MATCH_YYMMDDHHMMSS = SS_MSK | MM_MSK | HH_MSK | D_MSK | M_MSK | Y_MSK
| ^~~~~~
/home/brian/Brian/Documentation/Microcontrollers/STM32/Software/Libraries/STM32RTC-master/examples/SimpleRTC/STM32RTC.h:89:37: error: 'MM_MSK' was not declared in this scope
89 | MATCH_MMSS = SS_MSK | MM_MSK, // Every Hour
| ^~~~~~
/tmp/arduino_build_576068/sketch/STM32RTC.h:95:37: error: 'MM_MSK' was not declared in this scope
95 | MATCH_YYMMDDHHMMSS = SS_MSK | MM_MSK | HH_MSK | D_MSK | M_MSK | Y_MSK
| ^~~~~~
/home/brian/Brian/Documentation/Microcontrollers/STM32/Software/Libraries/STM32RTC-master/examples/SimpleRTC/STM32RTC.h:90:28: error: 'SS_MSK' was not declared in this scope
90 | MATCH_HHMMSS = SS_MSK | MM_MSK | HH_MSK, // Every Day
| ^~~~~~
/tmp/arduino_build_576068/sketch/STM32RTC.h:95:46: error: 'HH_MSK' was not declared in this scope
95 | MATCH_YYMMDDHHMMSS = SS_MSK | MM_MSK | HH_MSK | D_MSK | M_MSK | Y_MSK
| ^~~~~~
/home/brian/Brian/Documentation/Microcontrollers/STM32/Software/Libraries/STM32RTC-master/examples/SimpleRTC/STM32RTC.h:90:37: error: 'MM_MSK' was not declared in this scope
90 | MATCH_HHMMSS = SS_MSK | MM_MSK | HH_MSK, // Every Day
| ^~~~~~
/tmp/arduino_build_576068/sketch/STM32RTC.h:95:55: error: 'D_MSK' was not declared in this scope
95 | MATCH_YYMMDDHHMMSS = SS_MSK | MM_MSK | HH_MSK | D_MSK | M_MSK | Y_MSK
| ^~~~~
/tmp/arduino_build_576068/sketch/STM32RTC.h:95:63: error: 'M_MSK' was not declared in this scope
95 | MATCH_YYMMDDHHMMSS = SS_MSK | MM_MSK | HH_MSK | D_MSK | M_MSK | Y_MSK
| ^~~~~
/home/brian/Brian/Documentation/Microcontrollers/STM32/Software/Libraries/STM32RTC-master/examples/SimpleRTC/STM32RTC.h:90:46: error: 'HH_MSK' was not declared in this scope
90 | MATCH_HHMMSS = SS_MSK | MM_MSK | HH_MSK, // Every Day
| ^~~~~~
/tmp/arduino_build_576068/sketch/STM32RTC.h:95:71: error: 'Y_MSK' was not declared in this scope
95 | MATCH_YYMMDDHHMMSS = SS_MSK | MM_MSK | HH_MSK | D_MSK | M_MSK | Y_MSK
| ^~~~~
/home/brian/Brian/Documentation/Microcontrollers/STM32/Software/Libraries/STM32RTC-master/examples/SimpleRTC/STM32RTC.h:91:28: error: 'SS_MSK' was not declared in this scope
91 | MATCH_DHHMMSS = SS_MSK | MM_MSK | HH_MSK | D_MSK, // Every Month
| ^~~~~~
/home/brian/Brian/Documentation/Microcontrollers/STM32/Software/Libraries/STM32RTC-master/examples/SimpleRTC/STM32RTC.h:91:37: error: 'MM_MSK' was not declared in this scope
91 | MATCH_DHHMMSS = SS_MSK | MM_MSK | HH_MSK | D_MSK, // Every Month
| ^~~~~~
/home/brian/Brian/Documentation/Microcontrollers/STM32/Software/Libraries/STM32RTC-master/examples/SimpleRTC/STM32RTC.h:91:46: error: 'HH_MSK' was not declared in this scope
91 | MATCH_DHHMMSS = SS_MSK | MM_MSK | HH_MSK | D_MSK, // Every Month
| ^~~~~~
/home/brian/Brian/Documentation/Microcontrollers/STM32/Software/Libraries/STM32RTC-master/examples/SimpleRTC/STM32RTC.h:91:55: error: 'D_MSK' was not declared in this scope
91 | MATCH_DHHMMSS = SS_MSK | MM_MSK | HH_MSK | D_MSK, // Every Month
| ^~~~~
/tmp/arduino_build_576068/sketch/STM32RTC.h: In member function 'bool STM32RTC::isTimeSet()':
/tmp/arduino_build_576068/sketch/STM32RTC.h:206:14: error: 'RTC_IsTimeSet' was not declared in this scope; did you mean 'isTimeSet'?
206 | return RTC_IsTimeSet();
| ^~~~~~~~~~~~~
| isTimeSet
/home/brian/Brian/Documentation/Microcontrollers/STM32/Software/Libraries/STM32RTC-master/examples/SimpleRTC/STM32RTC.h:94:28: error: 'SS_MSK' was not declared in this scope
94 | MATCH_MMDDHHMMSS = SS_MSK | MM_MSK | HH_MSK | D_MSK | M_MSK,
| ^~~~~~
/home/brian/Brian/Documentation/Microcontrollers/STM32/Software/Libraries/STM32RTC-master/examples/SimpleRTC/STM32RTC.h:94:37: error: 'MM_MSK' was not declared in this scope
94 | MATCH_MMDDHHMMSS = SS_MSK | MM_MSK | HH_MSK | D_MSK | M_MSK,
| ^~~~~~
/home/brian/Brian/Documentation/Microcontrollers/STM32/Software/Libraries/STM32RTC-master/examples/SimpleRTC/STM32RTC.h:94:46: error: 'HH_MSK' was not declared in this scope
94 | MATCH_MMDDHHMMSS = SS_MSK | MM_MSK | HH_MSK | D_MSK | M_MSK,
| ^~~~~~
/home/brian/Brian/Documentation/Microcontrollers/STM32/Software/Libraries/STM32RTC-master/examples/SimpleRTC/STM32RTC.h:94:55: error: 'D_MSK' was not declared in this scope
94 | MATCH_MMDDHHMMSS = SS_MSK | MM_MSK | HH_MSK | D_MSK | M_MSK,
| ^~~~~
/home/brian/Brian/Documentation/Microcontrollers/STM32/Software/Libraries/STM32RTC-master/examples/SimpleRTC/STM32RTC.h:94:63: error: 'M_MSK' was not declared in this scope
94 | MATCH_MMDDHHMMSS = SS_MSK | MM_MSK | HH_MSK | D_MSK | M_MSK,
| ^~~~~
/home/brian/Brian/Documentation/Microcontrollers/STM32/Software/Libraries/STM32RTC-master/examples/SimpleRTC/STM32RTC.h:95:28: error: 'SS_MSK' was not declared in this scope
95 | MATCH_YYMMDDHHMMSS = SS_MSK | MM_MSK | HH_MSK | D_MSK | M_MSK | Y_MSK
| ^~~~~~
/tmp/arduino_build_576068/sketch/STM32RTC.cpp: In member function 'void STM32RTC::begin(STM32RTC::Hour_Format)':
/tmp/arduino_build_576068/sketch/STM32RTC.cpp:73:36: error: 'HOUR_FORMAT_12' was not declared in this scope; did you mean 'RTC_HOURFORMAT_12'?
73 | RTC_init((format == HOUR_12) ? HOUR_FORMAT_12 : HOUR_FORMAT_24,
| ^~~~~~~~~~~~~~
| RTC_HOURFORMAT_12
/home/brian/Brian/Documentation/Microcontrollers/STM32/Software/Libraries/STM32RTC-master/examples/SimpleRTC/STM32RTC.h:95:37: error: 'MM_MSK' was not declared in this scope
95 | MATCH_YYMMDDHHMMSS = SS_MSK | MM_MSK | HH_MSK | D_MSK | M_MSK | Y_MSK
| ^~~~~~
/home/brian/Brian/Documentation/Microcontrollers/STM32/Software/Libraries/STM32RTC-master/examples/SimpleRTC/STM32RTC.h:95:46: error: 'HH_MSK' was not declared in this scope
95 | MATCH_YYMMDDHHMMSS = SS_MSK | MM_MSK | HH_MSK | D_MSK | M_MSK | Y_MSK
| ^~~~~~
/home/brian/Brian/Documentation/Microcontrollers/STM32/Software/Libraries/STM32RTC-master/examples/SimpleRTC/STM32RTC.h:95:55: error: 'D_MSK' was not declared in this scope
95 | MATCH_YYMMDDHHMMSS = SS_MSK | MM_MSK | HH_MSK | D_MSK | M_MSK | Y_MSK
| ^~~~~
/home/brian/Brian/Documentation/Microcontrollers/STM32/Software/Libraries/STM32RTC-master/examples/SimpleRTC/STM32RTC.h:95:63: error: 'M_MSK' was not declared in this scope
95 | MATCH_YYMMDDHHMMSS = SS_MSK | MM_MSK | HH_MSK | D_MSK | M_MSK | Y_MSK
| ^~~~~
/home/brian/Brian/Documentation/Microcontrollers/STM32/Software/Libraries/STM32RTC-master/examples/SimpleRTC/STM32RTC.h:95:71: error: 'Y_MSK' was not declared in this scope
95 | MATCH_YYMMDDHHMMSS = SS_MSK | MM_MSK | HH_MSK | D_MSK | M_MSK | Y_MSK
| ^~~~~
/tmp/arduino_build_576068/sketch/STM32RTC.cpp:73:53: error: 'HOUR_FORMAT_24' was not declared in this scope; did you mean 'RTC_HOURFORMAT_24'?
73 | RTC_init((format == HOUR_12) ? HOUR_FORMAT_12 : HOUR_FORMAT_24,
| ^~~~~~~~~~~~~~
| RTC_HOURFORMAT_24
/tmp/arduino_build_576068/sketch/STM32RTC.cpp:73:5: error: 'RTC_init' was not declared in this scope
73 | RTC_init((format == HOUR_12) ? HOUR_FORMAT_12 : HOUR_FORMAT_24,
| ^~~~~~~~
/home/brian/Brian/Documentation/Microcontrollers/STM32/Software/Libraries/STM32RTC-master/examples/SimpleRTC/STM32RTC.h: In member function 'bool STM32RTC::isTimeSet()':
/home/brian/Brian/Documentation/Microcontrollers/STM32/Software/Libraries/STM32RTC-master/examples/SimpleRTC/STM32RTC.h:206:14: error: 'RTC_IsTimeSet' was not declared in this scope; did you mean 'isTimeSet'?
206 | return RTC_IsTimeSet();
| ^~~~~~~~~~~~~
| isTimeSet
/tmp/arduino_build_576068/sketch/STM32RTC.cpp: In member function 'void STM32RTC::end()':
/tmp/arduino_build_576068/sketch/STM32RTC.cpp:106:5: error: 'RTC_DeInit' was not declared in this scope; did you mean 'HAL_DeInit'?
106 | RTC_DeInit();
| ^~~~~~~~~~
| HAL_DeInit
/tmp/arduino_build_576068/sketch/STM32RTC.cpp: In member function 'void STM32RTC::setClockSource(STM32RTC::Source_Clock)':
/tmp/arduino_build_576068/sketch/STM32RTC.cpp:131:5: error: 'RTC_SetClockSource' was not declared in this scope; did you mean 'getClockSource'?
131 | RTC_SetClockSource((_clockSource == LSE_CLOCK) ? ::LSE_CLOCK :
| ^~~~~~~~~~~~~~~~~~
| getClockSource
/tmp/arduino_build_576068/sketch/STM32RTC.cpp: In member function 'void STM32RTC::getPrediv(int8_t*, int16_t*)':
/tmp/arduino_build_576068/sketch/STM32RTC.cpp:146:5: error: 'RTC_getPrediv' was not declared in this scope; did you mean 'getPrediv'?
146 | RTC_getPrediv(predivA, predivS);
| ^~~~~~~~~~~~~
| getPrediv
/tmp/arduino_build_576068/sketch/STM32RTC.cpp: In member function 'void STM32RTC::setPrediv(int8_t, int16_t)':
/tmp/arduino_build_576068/sketch/STM32RTC.cpp:159:3: error: 'RTC_setPrediv' was not declared in this scope; did you mean 'setPrediv'?
159 | RTC_setPrediv(predivA, predivS);
| ^~~~~~~~~~~~~
| setPrediv
/tmp/arduino_build_576068/sketch/STM32RTC.cpp: In member function 'void STM32RTC::enableAlarm(STM32RTC::Alarm_Match)':
/tmp/arduino_build_576068/sketch/STM32RTC.cpp:173:9: error: 'RTC_StopAlarm' was not declared in this scope
173 | RTC_StopAlarm();
| ^~~~~~~~~~~~~
/tmp/arduino_build_576068/sketch/STM32RTC.cpp:182:65: error: 'HOUR_AM' was not declared in this scope; did you mean 'HOUR_12'?
182 | _alarmSubSeconds, (_alarmPeriod == AM) ? HOUR_AM : HOUR_PM,
| ^~~~~~~
| HOUR_12
/tmp/arduino_build_576068/sketch/STM32RTC.cpp:182:75: error: 'HOUR_PM' was not declared in this scope; did you mean 'HOUR_12'?
182 | _alarmSubSeconds, (_alarmPeriod == AM) ? HOUR_AM : HOUR_PM,
| ^~~~~~~
| HOUR_12
/tmp/arduino_build_576068/sketch/STM32RTC.cpp:181:9: error: 'RTC_StartAlarm' was not declared in this scope
181 | RTC_StartAlarm(_alarmDay, _alarmHours, _alarmMinutes, _alarmSeconds,
| ^~~~~~~~~~~~~~
/tmp/arduino_build_576068/sketch/STM32RTC.cpp: In member function 'void STM32RTC::disableAlarm()':
/tmp/arduino_build_576068/sketch/STM32RTC.cpp:199:5: error: 'RTC_StopAlarm' was not declared in this scope
199 | RTC_StopAlarm();
| ^~~~~~~~~~~~~
/tmp/arduino_build_576068/sketch/STM32RTC.cpp: In member function 'void STM32RTC::attachInterrupt(voidFuncPtr, void*)':
/tmp/arduino_build_576068/sketch/STM32RTC.cpp:211:3: error: 'attachAlarmCallback' was not declared in this scope
211 | attachAlarmCallback(callback, data);
| ^~~~~~~~~~~~~~~~~~~
/tmp/arduino_build_576068/sketch/STM32RTC.cpp: In member function 'void STM32RTC::detachInterrupt()':
/tmp/arduino_build_576068/sketch/STM32RTC.cpp:220:3: error: 'detachAlarmCallback' was not declared in this scope
220 | detachAlarmCallback();
| ^~~~~~~~~~~~~~~~~~~
/tmp/arduino_build_576068/sketch/STM32RTC.cpp: In member function 'void STM32RTC::setSubSeconds(uint32_t)':
/tmp/arduino_build_576068/sketch/STM32RTC.cpp:466:81: error: 'HOUR_AM' was not declared in this scope; did you mean 'HOUR_12'?
466 | RTC_SetTime(_hours, _minutes, _seconds, _subSeconds, (_hoursPeriod == AM) ? HOUR_AM : HOUR_PM);
| ^~~~~~~
| HOUR_12
/tmp/arduino_build_576068/sketch/STM32RTC.cpp:466:91: error: 'HOUR_PM' was not declared in this scope; did you mean 'HOUR_12'?
466 | RTC_SetTime(_hours, _minutes, _seconds, _subSeconds, (_hoursPeriod == AM) ? HOUR_AM : HOUR_PM);
| ^~~~~~~
| HOUR_12
/tmp/arduino_build_576068/sketch/STM32RTC.cpp:466:5: error: 'RTC_SetTime' was not declared in this scope; did you mean 'HAL_RTC_SetTime'?
466 | RTC_SetTime(_hours, _minutes, _seconds, _subSeconds, (_hoursPeriod == AM) ? HOUR_AM : HOUR_PM);
| ^~~~~~~~~~~
| HAL_RTC_SetTime
/tmp/arduino_build_576068/sketch/STM32RTC.cpp: In member function 'void STM32RTC::setSeconds(uint8_t)':
/tmp/arduino_build_576068/sketch/STM32RTC.cpp:482:81: error: 'HOUR_AM' was not declared in this scope; did you mean 'HOUR_12'?
482 | RTC_SetTime(_hours, _minutes, _seconds, _subSeconds, (_hoursPeriod == AM) ? HOUR_AM : HOUR_PM);
| ^~~~~~~
| HOUR_12
/tmp/arduino_build_576068/sketch/STM32RTC.cpp:482:91: error: 'HOUR_PM' was not declared in this scope; did you mean 'HOUR_12'?
482 | RTC_SetTime(_hours, _minutes, _seconds, _subSeconds, (_hoursPeriod == AM) ? HOUR_AM : HOUR_PM);
| ^~~~~~~
| HOUR_12
/tmp/arduino_build_576068/sketch/STM32RTC.cpp:482:5: error: 'RTC_SetTime' was not declared in this scope; did you mean 'HAL_RTC_SetTime'?
482 | RTC_SetTime(_hours, _minutes, _seconds, _subSeconds, (_hoursPeriod == AM) ? HOUR_AM : HOUR_PM);
| ^~~~~~~~~~~
| HAL_RTC_SetTime
/tmp/arduino_build_576068/sketch/STM32RTC.cpp: In member function 'void STM32RTC::setMinutes(uint8_t)':
/tmp/arduino_build_576068/sketch/STM32RTC.cpp:498:81: error: 'HOUR_AM' was not declared in this scope; did you mean 'HOUR_12'?
498 | RTC_SetTime(_hours, _minutes, _seconds, _subSeconds, (_hoursPeriod == AM) ? HOUR_AM : HOUR_PM);
| ^~~~~~~
| HOUR_12
/tmp/arduino_build_576068/sketch/STM32RTC.cpp:498:91: error: 'HOUR_PM' was not declared in this scope; did you mean 'HOUR_12'?
498 | RTC_SetTime(_hours, _minutes, _seconds, _subSeconds, (_hoursPeriod == AM) ? HOUR_AM : HOUR_PM);
| ^~~~~~~
| HOUR_12
/tmp/arduino_build_576068/sketch/STM32RTC.cpp:498:5: error: 'RTC_SetTime' was not declared in this scope; did you mean 'HAL_RTC_SetTime'?
498 | RTC_SetTime(_hours, _minutes, _seconds, _subSeconds, (_hoursPeriod == AM) ? HOUR_AM : HOUR_PM);
| ^~~~~~~~~~~
| HAL_RTC_SetTime
/tmp/arduino_build_576068/sketch/STM32RTC.cpp: In member function 'void STM32RTC::setHours(uint8_t, STM32RTC::AM_PM)':
/tmp/arduino_build_576068/sketch/STM32RTC.cpp:518:81: error: 'HOUR_AM' was not declared in this scope; did you mean 'HOUR_12'?
518 | RTC_SetTime(_hours, _minutes, _seconds, _subSeconds, (_hoursPeriod == AM) ? HOUR_AM : HOUR_PM);
| ^~~~~~~
| HOUR_12
/tmp/arduino_build_576068/sketch/STM32RTC.cpp:518:91: error: 'HOUR_PM' was not declared in this scope; did you mean 'HOUR_12'?
518 | RTC_SetTime(_hours, _minutes, _seconds, _subSeconds, (_hoursPeriod == AM) ? HOUR_AM : HOUR_PM);
| ^~~~~~~
| HOUR_12
/tmp/arduino_build_576068/sketch/STM32RTC.cpp:518:5: error: 'RTC_SetTime' was not declared in this scope; did you mean 'HAL_RTC_SetTime'?
518 | RTC_SetTime(_hours, _minutes, _seconds, _subSeconds, (_hoursPeriod == AM) ? HOUR_AM : HOUR_PM);
| ^~~~~~~~~~~
| HAL_RTC_SetTime
/tmp/arduino_build_576068/sketch/STM32RTC.cpp: In member function 'void STM32RTC::setTime(uint8_t, uint8_t, uint8_t, uint32_t, STM32RTC::AM_PM)':
/tmp/arduino_build_576068/sketch/STM32RTC.cpp:550:81: error: 'HOUR_AM' was not declared in this scope; did you mean 'HOUR_12'?
550 | RTC_SetTime(_hours, _minutes, _seconds, _subSeconds, (_hoursPeriod == AM) ? HOUR_AM : HOUR_PM);
| ^~~~~~~
| HOUR_12
/tmp/arduino_build_576068/sketch/STM32RTC.cpp:550:91: error: 'HOUR_PM' was not declared in this scope; did you mean 'HOUR_12'?
550 | RTC_SetTime(_hours, _minutes, _seconds, _subSeconds, (_hoursPeriod == AM) ? HOUR_AM : HOUR_PM);
| ^~~~~~~
| HOUR_12
/tmp/arduino_build_576068/sketch/STM32RTC.cpp:550:5: error: 'RTC_SetTime' was not declared in this scope; did you mean 'HAL_RTC_SetTime'?
550 | RTC_SetTime(_hours, _minutes, _seconds, _subSeconds, (_hoursPeriod == AM) ? HOUR_AM : HOUR_PM);
| ^~~~~~~~~~~
| HAL_RTC_SetTime
/tmp/arduino_build_576068/sketch/STM32RTC.cpp: In member function 'void STM32RTC::setWeekDay(uint8_t)':
/tmp/arduino_build_576068/sketch/STM32RTC.cpp:566:5: error: 'RTC_SetDate' was not declared in this scope; did you mean 'HAL_RTC_SetDate'?
566 | RTC_SetDate(_year, _month, _day, _wday);
| ^~~~~~~~~~~
| HAL_RTC_SetDate
/tmp/arduino_build_576068/sketch/STM32RTC.cpp: In member function 'void STM32RTC::setDay(uint8_t)':
/tmp/arduino_build_576068/sketch/STM32RTC.cpp:582:5: error: 'RTC_SetDate' was not declared in this scope; did you mean 'HAL_RTC_SetDate'?
582 | RTC_SetDate(_year, _month, _day, _wday);
| ^~~~~~~~~~~
| HAL_RTC_SetDate
/tmp/arduino_build_576068/sketch/STM32RTC.cpp: In member function 'void STM32RTC::setMonth(uint8_t)':
/tmp/arduino_build_576068/sketch/STM32RTC.cpp:598:5: error: 'RTC_SetDate' was not declared in this scope; did you mean 'HAL_RTC_SetDate'?
598 | RTC_SetDate(_year, _month, _day, _wday);
| ^~~~~~~~~~~
| HAL_RTC_SetDate
/tmp/arduino_build_576068/sketch/STM32RTC.cpp: In member function 'void STM32RTC::setYear(uint8_t)':
/tmp/arduino_build_576068/sketch/STM32RTC.cpp:614:5: error: 'RTC_SetDate' was not declared in this scope; did you mean 'HAL_RTC_SetDate'?
614 | RTC_SetDate(_year, _month, _day, _wday);
| ^~~~~~~~~~~
| HAL_RTC_SetDate
/tmp/arduino_build_576068/sketch/STM32RTC.cpp: In member function 'void STM32RTC::setDate(uint8_t, uint8_t, uint8_t)':
/tmp/arduino_build_576068/sketch/STM32RTC.cpp:638:5: error: 'RTC_SetDate' was not declared in this scope; did you mean 'HAL_RTC_SetDate'?
638 | RTC_SetDate(_year, _month, _day, _wday);
| ^~~~~~~~~~~
| HAL_RTC_SetDate
/tmp/arduino_build_576068/sketch/STM32RTC.cpp: In member function 'void STM32RTC::setDate(uint8_t, uint8_t, uint8_t, uint8_t)':
/tmp/arduino_build_576068/sketch/STM32RTC.cpp:666:5: error: 'RTC_SetDate' was not declared in this scope; did you mean 'HAL_RTC_SetDate'?
666 | RTC_SetDate(_year, _month, _day, _wday);
| ^~~~~~~~~~~
| HAL_RTC_SetDate
/tmp/arduino_build_576068/sketch/STM32RTC.cpp: In member function 'void STM32RTC::setEpoch(uint32_t, uint32_t)':
/tmp/arduino_build_576068/sketch/STM32RTC.cpp:895:5: error: 'RTC_SetDate' was not declared in this scope; did you mean 'HAL_RTC_SetDate'?
895 | RTC_SetDate(_year, _month, _day, _wday);
| ^~~~~~~~~~~
| HAL_RTC_SetDate
/tmp/arduino_build_576068/sketch/STM32RTC.cpp:896:81: error: 'HOUR_AM' was not declared in this scope; did you mean 'HOUR_12'?
896 | RTC_SetTime(_hours, _minutes, _seconds, _subSeconds, (_hoursPeriod == AM) ? HOUR_AM : HOUR_PM);
| ^~~~~~~
| HOUR_12
/tmp/arduino_build_576068/sketch/STM32RTC.cpp:896:91: error: 'HOUR_PM' was not declared in this scope; did you mean 'HOUR_12'?
896 | RTC_SetTime(_hours, _minutes, _seconds, _subSeconds, (_hoursPeriod == AM) ? HOUR_AM : HOUR_PM);
| ^~~~~~~
| HOUR_12
/tmp/arduino_build_576068/sketch/STM32RTC.cpp:896:5: error: 'RTC_SetTime' was not declared in this scope; did you mean 'HAL_RTC_SetTime'?
896 | RTC_SetTime(_hours, _minutes, _seconds, _subSeconds, (_hoursPeriod == AM) ? HOUR_AM : HOUR_PM);
| ^~~~~~~~~~~
| HAL_RTC_SetTime
/tmp/arduino_build_576068/sketch/STM32RTC.cpp: In member function 'void STM32RTC::syncTime()':
/tmp/arduino_build_576068/sketch/STM32RTC.cpp:964:5: error: 'hourAM_PM_t' was not declared in this scope
964 | hourAM_PM_t p = HOUR_AM;
| ^~~~~~~~~~~
/tmp/arduino_build_576068/sketch/STM32RTC.cpp:965:63: error: 'p' was not declared in this scope
965 | RTC_GetTime(&_hours, &_minutes, &_seconds, &_subSeconds, &p);
| ^
/tmp/arduino_build_576068/sketch/STM32RTC.cpp:965:5: error: 'RTC_GetTime' was not declared in this scope; did you mean 'HAL_RTC_GetTime'?
965 | RTC_GetTime(&_hours, &_minutes, &_seconds, &_subSeconds, &p);
| ^~~~~~~~~~~
| HAL_RTC_GetTime
/tmp/arduino_build_576068/sketch/STM32RTC.cpp:966:26: error: 'HOUR_AM' was not declared in this scope; did you mean 'HOUR_12'?
966 | _hoursPeriod = (p == HOUR_AM) ? AM : PM;
| ^~~~~~~
| HOUR_12
/tmp/arduino_build_576068/sketch/STM32RTC.cpp: In member function 'void STM32RTC::syncDate()':
/tmp/arduino_build_576068/sketch/STM32RTC.cpp:977:5: error: 'RTC_GetDate' was not declared in this scope; did you mean 'HAL_RTC_GetDate'?
977 | RTC_GetDate(&_year, &_month, &_day, &_wday);
| ^~~~~~~~~~~
| HAL_RTC_GetDate
/tmp/arduino_build_576068/sketch/STM32RTC.cpp: In member function 'void STM32RTC::syncAlarmTime()':
/tmp/arduino_build_576068/sketch/STM32RTC.cpp:988:5: error: 'hourAM_PM_t' was not declared in this scope
988 | hourAM_PM_t p = HOUR_AM;
| ^~~~~~~~~~~
/tmp/arduino_build_576068/sketch/STM32RTC.cpp:991:38: error: 'p' was not declared in this scope
991 | &_alarmSubSeconds, &p, &match);
| ^
/tmp/arduino_build_576068/sketch/STM32RTC.cpp:990:5: error: 'RTC_GetAlarm' was not declared in this scope; did you mean 'HAL_RTC_GetAlarm'?
990 | RTC_GetAlarm(&_alarmDay, &_alarmHours, &_alarmMinutes, &_alarmSeconds,
| ^~~~~~~~~~~~
| HAL_RTC_GetAlarm
/tmp/arduino_build_576068/sketch/STM32RTC.cpp:992:26: error: 'HOUR_AM' was not declared in this scope; did you mean 'HOUR_12'?
992 | _alarmPeriod = (p == HOUR_AM) ? AM : PM;
| ^~~~~~~
| HOUR_12
Using library SrcWrapper at version 1.0.1 in folder: /home/brian/.arduino15/packages/STM32/hardware/stm32/1.9.0/libraries/SrcWrapper
exit status 1
Error compiling for board Generic STM32F4 series.
Turns out this is a duplicate of a closed issue. Thanks.
Solved by deleting the rtc.h and rtc.c files, they are apparently included in the boards files now. Same technique works for the lowpower libraries.