stm32duino / STM32RTC

Arduino RTC library for STM32.
131 stars 48 forks source link

Library does not work with latest platformio #30

Closed angelnu closed 4 years ago

angelnu commented 4 years ago

Platformio updated to the latest platform-ststm32 from 10 days ago does not work after the library split here (see error output bellow).

The problem is that the stm32duino version is v1.9.0 and this results in rtc.h and rtc.c not being used. I changed the version checks to allow for this version until a new platform-ststm32 is available. The library compiles fine and I do not see any side effects.

I will do a PR since anyway I have to keep a fork until all fixes become available. I have never tried to update platform-ststm32 but this would be another alternative to pick up latest stm32duino versions.

Compile error:

In file included from lib/STM32LowPower/src/STM32LowPower.h:49,
                 from src/sleep.cpp:8:
.pio/libdeps/generic_basic_v1_debug/STM32duino RTC/src/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
.pio/libdeps/generic_basic_v1_debug/STM32duino RTC/src/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
.pio/libdeps/generic_basic_v1_debug/STM32duino RTC/src/STM32RTC.h:82:12: error: 'HOUR_AM' was not declared in this scope; did you mean 'HOUR_24'?
   82 |       AM = HOUR_AM,
      |            ^~~~~~~
      |            HOUR_24
.pio/libdeps/generic_basic_v1_debug/STM32duino RTC/src/STM32RTC.h:83:12: error: 'HOUR_PM' was not declared in this scope; did you mean 'HOUR_24'?
   83 |       PM = HOUR_PM
      |            ^~~~~~~
      |            HOUR_24
In file included from .pio/libdeps/generic_basic_v1_debug/STM32duino RTC/src/STM32RTC.cpp:39:
.pio/libdeps/generic_basic_v1_debug/STM32duino RTC/src/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
.pio/libdeps/generic_basic_v1_debug/STM32duino RTC/src/STM32RTC.h:87:28: error: 'OFF_MSK' was not declared in this scope
   87 |       MATCH_OFF          = OFF_MSK,                          // Never
      |                            ^~~~~~~
.pio/libdeps/generic_basic_v1_debug/STM32duino RTC/src/STM32RTC.h:88:28: error: 'SS_MSK' was not declared in this scope
   88 |       MATCH_SS           = SS_MSK,                           // Every Minute
      |                            ^~~~~~
Compiling .pio/build/generic_basic_v1_debug/lib495/MCCI LoRaWAN LMIC library_ID5774/hal/getpinmap_catena4612.cpp.o
.pio/libdeps/generic_basic_v1_debug/STM32duino RTC/src/STM32RTC.h:89:28: error: 'SS_MSK' was not declared in this scope
   89 |       MATCH_MMSS         = SS_MSK | MM_MSK,                  // Every Hour
      |                            ^~~~~~
.pio/libdeps/generic_basic_v1_debug/STM32duino RTC/src/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
.pio/libdeps/generic_basic_v1_debug/STM32duino RTC/src/STM32RTC.h:89:37: error: 'MM_MSK' was not declared in this scope
   89 |       MATCH_MMSS         = SS_MSK | MM_MSK,                  // Every Hour
      |                                     ^~~~~~
.pio/libdeps/generic_basic_v1_debug/STM32duino RTC/src/STM32RTC.h:82:12: error: 'HOUR_AM' was not declared in this scope; did you mean 'HOUR_24'?
   82 |       AM = HOUR_AM,
      |            ^~~~~~~
      |            HOUR_24
.pio/libdeps/generic_basic_v1_debug/STM32duino RTC/src/STM32RTC.h:83:12: error: 'HOUR_PM' was not declared in this scope; did you mean 'HOUR_24'?
   83 |       PM = HOUR_PM
      |            ^~~~~~~
      |            HOUR_24
Compiling .pio/build/generic_basic_v1_debug/lib495/MCCI LoRaWAN LMIC library_ID5774/hal/getpinmap_catena4617.cpp.o
.pio/libdeps/generic_basic_v1_debug/STM32duino RTC/src/STM32RTC.h:90:28: error: 'SS_MSK' was not declared in this scope
   90 |       MATCH_HHMMSS       = SS_MSK | MM_MSK | HH_MSK,         // Every Day
      |                            ^~~~~~
.pio/libdeps/generic_basic_v1_debug/STM32duino RTC/src/STM32RTC.h:90:37: error: 'MM_MSK' was not declared in this scope
   90 |       MATCH_HHMMSS       = SS_MSK | MM_MSK | HH_MSK,         // Every Day
      |                                     ^~~~~~
.pio/libdeps/generic_basic_v1_debug/STM32duino RTC/src/STM32RTC.h:87:28: error: 'OFF_MSK' was not declared in this scope
   87 |       MATCH_OFF          = OFF_MSK,                          // Never
      |                            ^~~~~~~
.pio/libdeps/generic_basic_v1_debug/STM32duino RTC/src/STM32RTC.h:90:46: error: 'HH_MSK' was not declared in this scope
   90 |       MATCH_HHMMSS       = SS_MSK | MM_MSK | HH_MSK,         // Every Day
      |                                              ^~~~~~
.pio/libdeps/generic_basic_v1_debug/STM32duino RTC/src/STM32RTC.h:88:28: error: 'SS_MSK' was not declared in this scope
   88 |       MATCH_SS           = SS_MSK,                           // Every Minute
      |                            ^~~~~~
.pio/libdeps/generic_basic_v1_debug/STM32duino RTC/src/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
      |                            ^~~~~~
.pio/libdeps/generic_basic_v1_debug/STM32duino RTC/src/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
      |                                     ^~~~~~
.pio/libdeps/generic_basic_v1_debug/STM32duino RTC/src/STM32RTC.h:89:28: error: 'SS_MSK' was not declared in this scope
   89 |       MATCH_MMSS         = SS_MSK | MM_MSK,                  // Every Hour
      |                            ^~~~~~
In file included from lib/STM32LowPower/src/STM32LowPower.h:49,
                 from lib/STM32LowPower/src/STM32LowPower.cpp:39:
.pio/libdeps/generic_basic_v1_debug/STM32duino RTC/src/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
.pio/libdeps/generic_basic_v1_debug/STM32duino RTC/src/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
      |                                              ^~~~~~
.pio/libdeps/generic_basic_v1_debug/STM32duino RTC/src/STM32RTC.h:89:37: error: 'MM_MSK' was not declared in this scope
   89 |       MATCH_MMSS         = SS_MSK | MM_MSK,                  // Every Hour
      |                                     ^~~~~~
.pio/libdeps/generic_basic_v1_debug/STM32duino RTC/src/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
      |                                                       ^~~~~
.pio/libdeps/generic_basic_v1_debug/STM32duino RTC/src/STM32RTC.h:90:28: error: 'SS_MSK' was not declared in this scope
   90 |       MATCH_HHMMSS       = SS_MSK | MM_MSK | HH_MSK,         // Every Day
      |                            ^~~~~~
.pio/libdeps/generic_basic_v1_debug/STM32duino RTC/src/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,
      |                            ^~~~~~
Compiling .pio/build/generic_basic_v1_debug/lib495/MCCI LoRaWAN LMIC library_ID5774/hal/getpinmap_catena4618.cpp.o
.pio/libdeps/generic_basic_v1_debug/STM32duino RTC/src/STM32RTC.h:90:37: error: 'MM_MSK' was not declared in this scope
   90 |       MATCH_HHMMSS       = SS_MSK | MM_MSK | HH_MSK,         // Every Day
      |                                     ^~~~~~
.pio/libdeps/generic_basic_v1_debug/STM32duino RTC/src/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,
      |                                     ^~~~~~
.pio/libdeps/generic_basic_v1_debug/STM32duino RTC/src/STM32RTC.h:90:46: error: 'HH_MSK' was not declared in this scope
   90 |       MATCH_HHMMSS       = SS_MSK | MM_MSK | HH_MSK,         // Every Day
      |                                              ^~~~~~
.pio/libdeps/generic_basic_v1_debug/STM32duino RTC/src/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,
      |                                              ^~~~~~
.pio/libdeps/generic_basic_v1_debug/STM32duino RTC/src/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
      |                            ^~~~~~
.pio/libdeps/generic_basic_v1_debug/STM32duino RTC/src/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
.pio/libdeps/generic_basic_v1_debug/STM32duino RTC/src/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,
      |                                                       ^~~~~
.pio/libdeps/generic_basic_v1_debug/STM32duino RTC/src/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
      |                                     ^~~~~~
.pio/libdeps/generic_basic_v1_debug/STM32duino RTC/src/STM32RTC.h:82:12: error: 'HOUR_AM' was not declared in this scope; did you mean 'HOUR_24'?
   82 |       AM = HOUR_AM,
      |            ^~~~~~~
      |            HOUR_24
.pio/libdeps/generic_basic_v1_debug/STM32duino RTC/src/STM32RTC.h:83:12: error: 'HOUR_PM' was not declared in this scope; did you mean 'HOUR_24'?
   83 |       PM = HOUR_PM
      |            ^~~~~~~
      |            HOUR_24
.pio/libdeps/generic_basic_v1_debug/STM32duino RTC/src/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,
      |                                                               ^~~~~
Compiling .pio/build/generic_basic_v1_debug/lib495/MCCI LoRaWAN LMIC library_ID5774/hal/getpinmap_catena4630.cpp.o
.pio/libdeps/generic_basic_v1_debug/STM32duino RTC/src/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
      |                            ^~~~~~
.pio/libdeps/generic_basic_v1_debug/STM32duino RTC/src/STM32RTC.h:87:28: error: 'OFF_MSK' was not declared in this scope
   87 |       MATCH_OFF          = OFF_MSK,                          // Never
      |                            ^~~~~~~
.pio/libdeps/generic_basic_v1_debug/STM32duino RTC/src/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
      |                                              ^~~~~~
.pio/libdeps/generic_basic_v1_debug/STM32duino RTC/src/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
      |                                                       ^~~~~
.pio/libdeps/generic_basic_v1_debug/STM32duino RTC/src/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
      |                                     ^~~~~~
.pio/libdeps/generic_basic_v1_debug/STM32duino RTC/src/STM32RTC.h:88:28: error: 'SS_MSK' was not declared in this scope
   88 |       MATCH_SS           = SS_MSK,                           // Every Minute
      |                            ^~~~~~
.pio/libdeps/generic_basic_v1_debug/STM32duino RTC/src/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,
      |                            ^~~~~~
.pio/libdeps/generic_basic_v1_debug/STM32duino RTC/src/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
      |                                              ^~~~~~
.pio/libdeps/generic_basic_v1_debug/STM32duino RTC/src/STM32RTC.h:89:28: error: 'SS_MSK' was not declared in this scope
   89 |       MATCH_MMSS         = SS_MSK | MM_MSK,                  // Every Hour
      |                            ^~~~~~
.pio/libdeps/generic_basic_v1_debug/STM32duino RTC/src/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,
      |                                     ^~~~~~
.pio/libdeps/generic_basic_v1_debug/STM32duino RTC/src/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
      |                                                       ^~~~~
.pio/libdeps/generic_basic_v1_debug/STM32duino RTC/src/STM32RTC.h:89:37: error: 'MM_MSK' was not declared in this scope
   89 |       MATCH_MMSS         = SS_MSK | MM_MSK,                  // Every Hour
      |                                     ^~~~~~
.pio/libdeps/generic_basic_v1_debug/STM32duino RTC/src/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,
      |                                              ^~~~~~
.pio/libdeps/generic_basic_v1_debug/STM32duino RTC/src/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
      |                                                               ^~~~~
.pio/libdeps/generic_basic_v1_debug/STM32duino RTC/src/STM32RTC.h:90:28: error: 'SS_MSK' was not declared in this scope
   90 |       MATCH_HHMMSS       = SS_MSK | MM_MSK | HH_MSK,         // Every Day
      |                            ^~~~~~
.pio/libdeps/generic_basic_v1_debug/STM32duino RTC/src/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,
      |                                                       ^~~~~
.pio/libdeps/generic_basic_v1_debug/STM32duino RTC/src/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,
      |                                                               ^~~~~
.pio/libdeps/generic_basic_v1_debug/STM32duino RTC/src/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
      |                                                                       ^~~~~
.pio/libdeps/generic_basic_v1_debug/STM32duino RTC/src/STM32RTC.h:90:37: error: 'MM_MSK' was not declared in this scope
   90 |       MATCH_HHMMSS       = SS_MSK | MM_MSK | HH_MSK,         // Every Day
      |                                     ^~~~~~
Compiling .pio/build/generic_basic_v1_debug/lib495/MCCI LoRaWAN LMIC library_ID5774/hal/getpinmap_catena4801.cpp.o
.pio/libdeps/generic_basic_v1_debug/STM32duino RTC/src/STM32RTC.h:90:46: error: 'HH_MSK' was not declared in this scope
   90 |       MATCH_HHMMSS       = SS_MSK | MM_MSK | HH_MSK,         // Every Day
      |                                              ^~~~~~
.pio/libdeps/generic_basic_v1_debug/STM32duino RTC/src/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
      |                            ^~~~~~
.pio/libdeps/generic_basic_v1_debug/STM32duino RTC/src/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
      |                                     ^~~~~~
.pio/libdeps/generic_basic_v1_debug/STM32duino RTC/src/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
      |                            ^~~~~~
.pio/libdeps/generic_basic_v1_debug/STM32duino RTC/src/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
      |                                              ^~~~~~
.pio/libdeps/generic_basic_v1_debug/STM32duino RTC/src/STM32RTC.h: In member function 'bool STM32RTC::isTimeSet()':
.pio/libdeps/generic_basic_v1_debug/STM32duino RTC/src/STM32RTC.h:206:14: error: 'RTC_IsTimeSet' was not declared in this scope; did you mean 'isTimeSet'?
  206 |       return RTC_IsTimeSet();
      |              ^~~~~~~~~~~~~
      |              isTimeSet
.pio/libdeps/generic_basic_v1_debug/STM32duino RTC/src/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
      |                                     ^~~~~~
.pio/libdeps/generic_basic_v1_debug/STM32duino RTC/src/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
      |                                                       ^~~~~
.pio/libdeps/generic_basic_v1_debug/STM32duino RTC/src/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
      |                                              ^~~~~~
.pio/libdeps/generic_basic_v1_debug/STM32duino RTC/src/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
      |                                                               ^~~~~
Compiling .pio/build/generic_basic_v1_debug/lib495/MCCI LoRaWAN LMIC library_ID5774/hal/getpinmap_disco_l072cs_lrwan1.cpp.o
.pio/libdeps/generic_basic_v1_debug/STM32duino RTC/src/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
      |                                                       ^~~~~
.pio/libdeps/generic_basic_v1_debug/STM32duino RTC/src/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
      |                                                                       ^~~~~
.pio/libdeps/generic_basic_v1_debug/STM32duino RTC/src/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,
      |                            ^~~~~~
.pio/libdeps/generic_basic_v1_debug/STM32duino RTC/src/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,
      |                                     ^~~~~~
.pio/libdeps/generic_basic_v1_debug/STM32duino RTC/src/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,
      |                                              ^~~~~~
.pio/libdeps/generic_basic_v1_debug/STM32duino RTC/src/STM32RTC.h: In member function 'bool STM32RTC::isTimeSet()':
.pio/libdeps/generic_basic_v1_debug/STM32duino RTC/src/STM32RTC.h:206:14: error: 'RTC_IsTimeSet' was not declared in this scope; did you mean 'isTimeSet'?
  206 |       return RTC_IsTimeSet();
      |              ^~~~~~~~~~~~~
      |              isTimeSet
Compiling .pio/build/generic_basic_v1_debug/lib495/MCCI LoRaWAN LMIC library_ID5774/hal/getpinmap_feather32u4lora.cpp.o
.pio/libdeps/generic_basic_v1_debug/STM32duino RTC/src/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,
      |                                                       ^~~~~
.pio/libdeps/generic_basic_v1_debug/STM32duino RTC/src/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,
      |                                                               ^~~~~
.pio/libdeps/generic_basic_v1_debug/STM32duino RTC/src/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
      |                            ^~~~~~
.pio/libdeps/generic_basic_v1_debug/STM32duino RTC/src/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
      |                                     ^~~~~~
.pio/libdeps/generic_basic_v1_debug/STM32duino RTC/src/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
      |                                              ^~~~~~
.pio/libdeps/generic_basic_v1_debug/STM32duino RTC/src/STM32RTC.cpp: In member function 'void STM32RTC::begin(STM32RTC::Hour_Format)':
.pio/libdeps/generic_basic_v1_debug/STM32duino RTC/src/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
.pio/libdeps/generic_basic_v1_debug/STM32duino RTC/src/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
      |                                                       ^~~~~
Compiling .pio/build/generic_basic_v1_debug/lib495/MCCI LoRaWAN LMIC library_ID5774/hal/getpinmap_featherm0lora.cpp.o
.pio/libdeps/generic_basic_v1_debug/STM32duino RTC/src/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
      |                                                               ^~~~~
.pio/libdeps/generic_basic_v1_debug/STM32duino RTC/src/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
      |                                                                       ^~~~~
.pio/libdeps/generic_basic_v1_debug/STM32duino RTC/src/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
.pio/libdeps/generic_basic_v1_debug/STM32duino RTC/src/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,
      |     ^~~~~~~~
.pio/libdeps/generic_basic_v1_debug/STM32duino RTC/src/STM32RTC.cpp: In member function 'void STM32RTC::end()':
.pio/libdeps/generic_basic_v1_debug/STM32duino RTC/src/STM32RTC.cpp:106:5: error: 'RTC_DeInit' was not declared in this scope; did you mean 'HAL_DeInit'?
  106 |     RTC_DeInit();
      |     ^~~~~~~~~~
      |     HAL_DeInit
.pio/libdeps/generic_basic_v1_debug/STM32duino RTC/src/STM32RTC.h: In member function 'bool STM32RTC::isTimeSet()':
.pio/libdeps/generic_basic_v1_debug/STM32duino RTC/src/STM32RTC.h:206:14: error: 'RTC_IsTimeSet' was not declared in this scope; did you mean 'isTimeSet'?
  206 |       return RTC_IsTimeSet();
      |              ^~~~~~~~~~~~~
      |              isTimeSet
Compiling .pio/build/generic_basic_v1_debug/lib495/MCCI LoRaWAN LMIC library_ID5774/hal/getpinmap_heltec_lora32.cpp.o
*** [.pio/build/generic_basic_v1_debug/src/sleep.cpp.o] Error 1
.pio/libdeps/generic_basic_v1_debug/STM32duino RTC/src/STM32RTC.cpp: In member function 'void STM32RTC::setClockSource(STM32RTC::Source_Clock)':
.pio/libdeps/generic_basic_v1_debug/STM32duino RTC/src/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
.pio/libdeps/generic_basic_v1_debug/STM32duino RTC/src/STM32RTC.cpp: In member function 'void STM32RTC::getPrediv(int8_t*, int16_t*)':
.pio/libdeps/generic_basic_v1_debug/STM32duino RTC/src/STM32RTC.cpp:146:5: error: 'RTC_getPrediv' was not declared in this scope; did you mean 'getPrediv'?
  146 |     RTC_getPrediv(predivA, predivS);
      |     ^~~~~~~~~~~~~
      |     getPrediv
.pio/libdeps/generic_basic_v1_debug/STM32duino RTC/src/STM32RTC.cpp: In member function 'void STM32RTC::setPrediv(int8_t, int16_t)':
.pio/libdeps/generic_basic_v1_debug/STM32duino RTC/src/STM32RTC.cpp:159:3: error: 'RTC_setPrediv' was not declared in this scope; did you mean 'setPrediv'?
  159 |   RTC_setPrediv(predivA, predivS);
      |   ^~~~~~~~~~~~~
      |   setPrediv
*** [.pio/build/generic_basic_v1_debug/lib469/STM32LowPower/STM32LowPower.cpp.o] Error 1
.pio/libdeps/generic_basic_v1_debug/STM32duino RTC/src/STM32RTC.cpp: In member function 'void STM32RTC::enableAlarm(STM32RTC::Alarm_Match)':
.pio/libdeps/generic_basic_v1_debug/STM32duino RTC/src/STM32RTC.cpp:173:9: error: 'RTC_StopAlarm' was not declared in this scope
  173 |         RTC_StopAlarm();
      |         ^~~~~~~~~~~~~
.pio/libdeps/generic_basic_v1_debug/STM32duino RTC/src/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
.pio/libdeps/generic_basic_v1_debug/STM32duino RTC/src/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
In file included from lib/STM32LowPower/src/STM32LowPower.h:49,
                 from src/main.cpp:5:
.pio/libdeps/generic_basic_v1_debug/STM32duino RTC/src/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
.pio/libdeps/generic_basic_v1_debug/STM32duino RTC/src/STM32RTC.cpp:181:9: error: 'RTC_StartAlarm' was not declared in this scope
  181 |         RTC_StartAlarm(_alarmDay, _alarmHours, _alarmMinutes, _alarmSeconds,
      |         ^~~~~~~~~~~~~~
.pio/libdeps/generic_basic_v1_debug/STM32duino RTC/src/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
.pio/libdeps/generic_basic_v1_debug/STM32duino RTC/src/STM32RTC.h:82:12: error: 'HOUR_AM' was not declared in this scope; did you mean 'HOUR_24'?
   82 |       AM = HOUR_AM,
      |            ^~~~~~~
      |            HOUR_24
.pio/libdeps/generic_basic_v1_debug/STM32duino RTC/src/STM32RTC.h:83:12: error: 'HOUR_PM' was not declared in this scope; did you mean 'HOUR_24'?
   83 |       PM = HOUR_PM
      |            ^~~~~~~
      |            HOUR_24
.pio/libdeps/generic_basic_v1_debug/STM32duino RTC/src/STM32RTC.h:87:28: error: 'OFF_MSK' was not declared in this scope
   87 |       MATCH_OFF          = OFF_MSK,                          // Never
      |                            ^~~~~~~
.pio/libdeps/generic_basic_v1_debug/STM32duino RTC/src/STM32RTC.cpp: In member function 'void STM32RTC::disableAlarm()':
.pio/libdeps/generic_basic_v1_debug/STM32duino RTC/src/STM32RTC.cpp:199:5: error: 'RTC_StopAlarm' was not declared in this scope
  199 |     RTC_StopAlarm();
      |     ^~~~~~~~~~~~~
.pio/libdeps/generic_basic_v1_debug/STM32duino RTC/src/STM32RTC.h:88:28: error: 'SS_MSK' was not declared in this scope
   88 |       MATCH_SS           = SS_MSK,                           // Every Minute
      |                            ^~~~~~
.pio/libdeps/generic_basic_v1_debug/STM32duino RTC/src/STM32RTC.h:89:28: error: 'SS_MSK' was not declared in this scope
   89 |       MATCH_MMSS         = SS_MSK | MM_MSK,                  // Every Hour
      |                            ^~~~~~
.pio/libdeps/generic_basic_v1_debug/STM32duino RTC/src/STM32RTC.h:89:37: error: 'MM_MSK' was not declared in this scope
   89 |       MATCH_MMSS         = SS_MSK | MM_MSK,                  // Every Hour
      |                                     ^~~~~~
.pio/libdeps/generic_basic_v1_debug/STM32duino RTC/src/STM32RTC.h:90:28: error: 'SS_MSK' was not declared in this scope
   90 |       MATCH_HHMMSS       = SS_MSK | MM_MSK | HH_MSK,         // Every Day
      |                            ^~~~~~
.pio/libdeps/generic_basic_v1_debug/STM32duino RTC/src/STM32RTC.h:90:37: error: 'MM_MSK' was not declared in this scope
   90 |       MATCH_HHMMSS       = SS_MSK | MM_MSK | HH_MSK,         // Every Day
      |                                     ^~~~~~
.pio/libdeps/generic_basic_v1_debug/STM32duino RTC/src/STM32RTC.h:90:46: error: 'HH_MSK' was not declared in this scope
   90 |       MATCH_HHMMSS       = SS_MSK | MM_MSK | HH_MSK,         // Every Day
      |                                              ^~~~~~
.pio/libdeps/generic_basic_v1_debug/STM32duino RTC/src/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
      |                            ^~~~~~
.pio/libdeps/generic_basic_v1_debug/STM32duino RTC/src/STM32RTC.cpp: In member function 'void STM32RTC::attachInterrupt(voidFuncPtr, void*)':
.pio/libdeps/generic_basic_v1_debug/STM32duino RTC/src/STM32RTC.cpp:211:3: error: 'attachAlarmCallback' was not declared in this scope
  211 |   attachAlarmCallback(callback, data);
      |   ^~~~~~~~~~~~~~~~~~~
.pio/libdeps/generic_basic_v1_debug/STM32duino RTC/src/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
      |                                     ^~~~~~
.pio/libdeps/generic_basic_v1_debug/STM32duino RTC/src/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
      |                                              ^~~~~~
.pio/libdeps/generic_basic_v1_debug/STM32duino RTC/src/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
      |                                                       ^~~~~
.pio/libdeps/generic_basic_v1_debug/STM32duino RTC/src/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,
      |                            ^~~~~~
.pio/libdeps/generic_basic_v1_debug/STM32duino RTC/src/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,
      |                                     ^~~~~~
.pio/libdeps/generic_basic_v1_debug/STM32duino RTC/src/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,
      |                                              ^~~~~~
.pio/libdeps/generic_basic_v1_debug/STM32duino RTC/src/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,
      |                                                       ^~~~~
.pio/libdeps/generic_basic_v1_debug/STM32duino RTC/src/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,
      |                                                               ^~~~~
.pio/libdeps/generic_basic_v1_debug/STM32duino RTC/src/STM32RTC.cpp: In member function 'void STM32RTC::detachInterrupt()':
.pio/libdeps/generic_basic_v1_debug/STM32duino RTC/src/STM32RTC.cpp:220:3: error: 'detachAlarmCallback' was not declared in this scope
  220 |   detachAlarmCallback();
      |   ^~~~~~~~~~~~~~~~~~~
.pio/libdeps/generic_basic_v1_debug/STM32duino RTC/src/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
      |                            ^~~~~~
.pio/libdeps/generic_basic_v1_debug/STM32duino RTC/src/STM32RTC.cpp: In member function 'void STM32RTC::setSubSeconds(uint32_t)':
.pio/libdeps/generic_basic_v1_debug/STM32duino RTC/src/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
.pio/libdeps/generic_basic_v1_debug/STM32duino RTC/src/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
.pio/libdeps/generic_basic_v1_debug/STM32duino RTC/src/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
      |                                     ^~~~~~
.pio/libdeps/generic_basic_v1_debug/STM32duino RTC/src/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
      |                                              ^~~~~~
.pio/libdeps/generic_basic_v1_debug/STM32duino RTC/src/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
.pio/libdeps/generic_basic_v1_debug/STM32duino RTC/src/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
      |                                                       ^~~~~
.pio/libdeps/generic_basic_v1_debug/STM32duino RTC/src/STM32RTC.cpp: In member function 'void STM32RTC::setSeconds(uint8_t)':
.pio/libdeps/generic_basic_v1_debug/STM32duino RTC/src/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
.pio/libdeps/generic_basic_v1_debug/STM32duino RTC/src/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
      |                                                               ^~~~~
.pio/libdeps/generic_basic_v1_debug/STM32duino RTC/src/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
.pio/libdeps/generic_basic_v1_debug/STM32duino RTC/src/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
      |                                                                       ^~~~~
.pio/libdeps/generic_basic_v1_debug/STM32duino RTC/src/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
.pio/libdeps/generic_basic_v1_debug/STM32duino RTC/src/STM32RTC.cpp: In member function 'void STM32RTC::setMinutes(uint8_t)':
.pio/libdeps/generic_basic_v1_debug/STM32duino RTC/src/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
.pio/libdeps/generic_basic_v1_debug/STM32duino RTC/src/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
.pio/libdeps/generic_basic_v1_debug/STM32duino RTC/src/STM32RTC.h: In member function 'bool STM32RTC::isTimeSet()':
.pio/libdeps/generic_basic_v1_debug/STM32duino RTC/src/STM32RTC.h:206:14: error: 'RTC_IsTimeSet' was not declared in this scope; did you mean 'isTimeSet'?
  206 |       return RTC_IsTimeSet();
      |              ^~~~~~~~~~~~~
      |              isTimeSet
.pio/libdeps/generic_basic_v1_debug/STM32duino RTC/src/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
.pio/libdeps/generic_basic_v1_debug/STM32duino RTC/src/STM32RTC.cpp: In member function 'void STM32RTC::setHours(uint8_t, STM32RTC::AM_PM)':
.pio/libdeps/generic_basic_v1_debug/STM32duino RTC/src/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
.pio/libdeps/generic_basic_v1_debug/STM32duino RTC/src/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
.pio/libdeps/generic_basic_v1_debug/STM32duino RTC/src/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
.pio/libdeps/generic_basic_v1_debug/STM32duino RTC/src/STM32RTC.cpp: In member function 'void STM32RTC::setTime(uint8_t, uint8_t, uint8_t, uint32_t, STM32RTC::AM_PM)':
.pio/libdeps/generic_basic_v1_debug/STM32duino RTC/src/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
.pio/libdeps/generic_basic_v1_debug/STM32duino RTC/src/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
.pio/libdeps/generic_basic_v1_debug/STM32duino RTC/src/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
.pio/libdeps/generic_basic_v1_debug/STM32duino RTC/src/STM32RTC.cpp: In member function 'void STM32RTC::setWeekDay(uint8_t)':
.pio/libdeps/generic_basic_v1_debug/STM32duino RTC/src/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
.pio/libdeps/generic_basic_v1_debug/STM32duino RTC/src/STM32RTC.cpp: In member function 'void STM32RTC::setDay(uint8_t)':
.pio/libdeps/generic_basic_v1_debug/STM32duino RTC/src/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
.pio/libdeps/generic_basic_v1_debug/STM32duino RTC/src/STM32RTC.cpp: In member function 'void STM32RTC::setMonth(uint8_t)':
.pio/libdeps/generic_basic_v1_debug/STM32duino RTC/src/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
.pio/libdeps/generic_basic_v1_debug/STM32duino RTC/src/STM32RTC.cpp: In member function 'void STM32RTC::setYear(uint8_t)':
.pio/libdeps/generic_basic_v1_debug/STM32duino RTC/src/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
.pio/libdeps/generic_basic_v1_debug/STM32duino RTC/src/STM32RTC.cpp: In member function 'void STM32RTC::setDate(uint8_t, uint8_t, uint8_t)':
.pio/libdeps/generic_basic_v1_debug/STM32duino RTC/src/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
*** [.pio/build/generic_basic_v1_debug/src/main.cpp.o] Error 1
.pio/libdeps/generic_basic_v1_debug/STM32duino RTC/src/STM32RTC.cpp: In member function 'void STM32RTC::setDate(uint8_t, uint8_t, uint8_t, uint8_t)':
.pio/libdeps/generic_basic_v1_debug/STM32duino RTC/src/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
.pio/libdeps/generic_basic_v1_debug/STM32duino RTC/src/STM32RTC.cpp: In member function 'void STM32RTC::setEpoch(uint32_t, uint32_t)':
.pio/libdeps/generic_basic_v1_debug/STM32duino RTC/src/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
.pio/libdeps/generic_basic_v1_debug/STM32duino RTC/src/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
.pio/libdeps/generic_basic_v1_debug/STM32duino RTC/src/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
.pio/libdeps/generic_basic_v1_debug/STM32duino RTC/src/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
.pio/libdeps/generic_basic_v1_debug/STM32duino RTC/src/STM32RTC.cpp: In member function 'void STM32RTC::syncTime()':
.pio/libdeps/generic_basic_v1_debug/STM32duino RTC/src/STM32RTC.cpp:964:5: error: 'hourAM_PM_t' was not declared in this scope
  964 |     hourAM_PM_t p = HOUR_AM;
      |     ^~~~~~~~~~~
.pio/libdeps/generic_basic_v1_debug/STM32duino RTC/src/STM32RTC.cpp:965:63: error: 'p' was not declared in this scope
  965 |     RTC_GetTime(&_hours, &_minutes, &_seconds, &_subSeconds, &p);
      |                                                               ^
.pio/libdeps/generic_basic_v1_debug/STM32duino RTC/src/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
.pio/libdeps/generic_basic_v1_debug/STM32duino RTC/src/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
.pio/libdeps/generic_basic_v1_debug/STM32duino RTC/src/STM32RTC.cpp: In member function 'void STM32RTC::syncDate()':
.pio/libdeps/generic_basic_v1_debug/STM32duino RTC/src/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
.pio/libdeps/generic_basic_v1_debug/STM32duino RTC/src/STM32RTC.cpp: In member function 'void STM32RTC::syncAlarmTime()':
.pio/libdeps/generic_basic_v1_debug/STM32duino RTC/src/STM32RTC.cpp:988:5: error: 'hourAM_PM_t' was not declared in this scope
  988 |     hourAM_PM_t p = HOUR_AM;
      |     ^~~~~~~~~~~
.pio/libdeps/generic_basic_v1_debug/STM32duino RTC/src/STM32RTC.cpp:991:38: error: 'p' was not declared in this scope
  991 |                  &_alarmSubSeconds, &p, &match);
      |                                      ^
.pio/libdeps/generic_basic_v1_debug/STM32duino RTC/src/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
.pio/libdeps/generic_basic_v1_debug/STM32duino RTC/src/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
*** [.pio/build/generic_basic_v1_debug/lib6f5/STM32duino RTC/STM32RTC.cpp.o] Error 1
==
angelnu commented 4 years ago

Provided PR -> https://github.com/stm32duino/STM32RTC/pull/31

fpistm commented 4 years ago

As mention is the PR #31 I don't know how PIO manages this anyway there is no issue with the version. The rtc drivers has been removed from the core after the 1.9.0 not the 1.8.0. So if version is greater than 1.9.0 then the library have to include the rtc.h.