Skip to content

Commit

Permalink
add ChibiOS FOME_STM32_LSE_WAIT_MAX macro warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
nmschulte committed Jan 16, 2025
1 parent bbf0c3e commit b4d702a
Show file tree
Hide file tree
Showing 14 changed files with 56 additions and 0 deletions.
4 changes: 4 additions & 0 deletions os/hal/ports/STM32/STM32F0xx/hal_lld.h
Original file line number Diff line number Diff line change
Expand Up @@ -677,6 +677,10 @@
#error "LSE not enabled, required by STM32_USART1SW"
#endif

#if (FOME_STM32_LSE_WAIT_MAX > 0) && (FOME_STM32_LSE_WAIT_MAX_RTCSEL == STM32_RTCSEL_LSE)
#error "LSE not enabled, required by FOME_STM32_LSE_WAIT_MAX_RTCSEL"
#endif

#if STM32_RTCSEL == STM32_RTCSEL_LSE
#error "LSE not enabled, required by STM32_RTCSEL"
#endif
Expand Down
4 changes: 4 additions & 0 deletions os/hal/ports/STM32/STM32F1xx/hal_lld_f100.h
Original file line number Diff line number Diff line change
Expand Up @@ -350,6 +350,10 @@

#else /* !STM32_LSE_ENABLED */

#if (FOME_STM32_LSE_WAIT_MAX > 0) && (FOME_STM32_LSE_WAIT_MAX_RTCSEL == STM32_RTCSEL_LSE)
#error "LSE not enabled, required by FOME_STM32_LSE_WAIT_MAX_RTCSEL"
#endif

#if STM32_RTCSEL == STM32_RTCSEL_LSE
#error "LSE not enabled, required by STM32_RTCSEL"
#endif
Expand Down
4 changes: 4 additions & 0 deletions os/hal/ports/STM32/STM32F1xx/hal_lld_f103.h
Original file line number Diff line number Diff line change
Expand Up @@ -367,6 +367,10 @@

#else /* !STM32_LSE_ENABLED */

#if (FOME_STM32_LSE_WAIT_MAX > 0) && (FOME_STM32_LSE_WAIT_MAX_RTCSEL == STM32_RTCSEL_LSE)
#error "LSE not enabled, required by FOME_STM32_LSE_WAIT_MAX_RTCSEL"
#endif

#if STM32_RTCSEL == STM32_RTCSEL_LSE
#error "LSE not enabled, required by STM32_RTCSEL"
#endif
Expand Down
4 changes: 4 additions & 0 deletions os/hal/ports/STM32/STM32F1xx/hal_lld_f105_f107.h
Original file line number Diff line number Diff line change
Expand Up @@ -445,6 +445,10 @@

#else /* !STM32_LSE_ENABLED */

#if (FOME_STM32_LSE_WAIT_MAX > 0) && (FOME_STM32_LSE_WAIT_MAX_RTCSEL == STM32_RTCSEL_LSE)
#error "LSE not enabled, required by FOME_STM32_LSE_WAIT_MAX_RTCSEL"
#endif

#if STM32_RTCSEL == STM32_RTCSEL_LSE
#error "LSE not enabled, required by STM32_RTCSEL"
#endif
Expand Down
4 changes: 4 additions & 0 deletions os/hal/ports/STM32/STM32F37x/hal_lld.h
Original file line number Diff line number Diff line change
Expand Up @@ -643,6 +643,10 @@

#else /* !STM32_LSE_ENABLED */

#if (FOME_STM32_LSE_WAIT_MAX > 0) && (FOME_STM32_LSE_WAIT_MAX_RTCSEL == STM32_RTCSEL_LSE)
#error "LSE not enabled, required by FOME_STM32_LSE_WAIT_MAX_RTCSEL"
#endif

#if STM32_RTCSEL == STM32_RTCSEL_LSE
#error "LSE not enabled, required by STM32_RTCSEL"
#endif
Expand Down
4 changes: 4 additions & 0 deletions os/hal/ports/STM32/STM32F3xx/hal_lld.h
Original file line number Diff line number Diff line change
Expand Up @@ -741,6 +741,10 @@

#else /* !STM32_LSE_ENABLED */

#if (FOME_STM32_LSE_WAIT_MAX > 0) && (FOME_STM32_LSE_WAIT_MAX_RTCSEL == STM32_RTCSEL_LSE)
#error "LSE not enabled, required by FOME_STM32_LSE_WAIT_MAX_RTCSEL"
#endif

#if STM32_RTCSEL == STM32_RTCSEL_LSE
#error "LSE not enabled, required by STM32_RTCSEL"
#endif
Expand Down
4 changes: 4 additions & 0 deletions os/hal/ports/STM32/STM32F4xx/hal_lld_type1.h
Original file line number Diff line number Diff line change
Expand Up @@ -1485,6 +1485,10 @@

#else /* !STM32_LSE_ENABLED */

#if (FOME_STM32_LSE_WAIT_MAX > 0) && (FOME_STM32_LSE_WAIT_MAX_RTCSEL == STM32_RTCSEL_LSE)
#error "LSE not enabled, required by FOME_STM32_LSE_WAIT_MAX_RTCSEL"
#endif

#if STM32_RTCSEL == STM32_RTCSEL_LSE
#error "LSE not enabled, required by STM32_RTCSEL"
#endif
Expand Down
4 changes: 4 additions & 0 deletions os/hal/ports/STM32/STM32F4xx/hal_lld_type2.h
Original file line number Diff line number Diff line change
Expand Up @@ -847,6 +847,10 @@

#else /* !STM32_LSE_ENABLED */

#if (FOME_STM32_LSE_WAIT_MAX > 0) && (FOME_STM32_LSE_WAIT_MAX_RTCSEL == STM32_RTCSEL_LSE)
#error "LSE not enabled, required by FOME_STM32_LSE_WAIT_MAX_RTCSEL"
#endif

#if STM32_RTCSEL == STM32_RTCSEL_LSE
#error "LSE not enabled, required by STM32_RTCSEL"
#endif
Expand Down
4 changes: 4 additions & 0 deletions os/hal/ports/STM32/STM32F7xx/hal_lld.h
Original file line number Diff line number Diff line change
Expand Up @@ -1216,6 +1216,10 @@

#else /* !STM32_LSE_ENABLED */

#if (FOME_STM32_LSE_WAIT_MAX > 0) && (FOME_STM32_LSE_WAIT_MAX_RTCSEL == STM32_RTCSEL_LSE)
#error "LSE not enabled, required by FOME_STM32_LSE_WAIT_MAX_RTCSEL"
#endif

#if STM32_RTCSEL == STM32_RTCSEL_LSE
#error "LSE not enabled, required by STM32_RTCSEL"
#endif
Expand Down
4 changes: 4 additions & 0 deletions os/hal/ports/STM32/STM32H7xx/hal_lld_type1.h
Original file line number Diff line number Diff line change
Expand Up @@ -1520,6 +1520,10 @@

#else /* !STM32_LSE_ENABLED */

#if (FOME_STM32_LSE_WAIT_MAX > 0) && (FOME_STM32_LSE_WAIT_MAX_RTCSEL == STM32_RTCSEL_LSE)
#error "LSE not enabled, required by FOME_STM32_LSE_WAIT_MAX_RTCSEL"
#endif

#if STM32_RTCSEL == STM32_RTCSEL_LSE_CK
#error "LSE not enabled, required by STM32_RTCSEL"
#endif
Expand Down
4 changes: 4 additions & 0 deletions os/hal/ports/STM32/STM32H7xx/hal_lld_type2.h
Original file line number Diff line number Diff line change
Expand Up @@ -1480,6 +1480,10 @@

#else /* !STM32_LSE_ENABLED */

#if (FOME_STM32_LSE_WAIT_MAX > 0) && (FOME_STM32_LSE_WAIT_MAX_RTCSEL == STM32_RTCSEL_LSE)
#error "LSE not enabled, required by FOME_STM32_LSE_WAIT_MAX_RTCSEL"
#endif

#if STM32_RTCSEL == STM32_RTCSEL_LSE_CK
#error "LSE not enabled, required by STM32_RTCSEL"
#endif
Expand Down
4 changes: 4 additions & 0 deletions os/hal/ports/STM32/STM32H7xx/hal_lld_type3.h
Original file line number Diff line number Diff line change
Expand Up @@ -1495,6 +1495,10 @@

#else /* !STM32_LSE_ENABLED */

#if (FOME_STM32_LSE_WAIT_MAX > 0) && (FOME_STM32_LSE_WAIT_MAX_RTCSEL == STM32_RTCSEL_LSE)
#error "LSE not enabled, required by FOME_STM32_LSE_WAIT_MAX_RTCSEL"
#endif

#if STM32_RTCSEL == STM32_RTCSEL_LSE_CK
#error "LSE not enabled, required by STM32_RTCSEL"
#endif
Expand Down
4 changes: 4 additions & 0 deletions os/hal/ports/STM32/STM32L0xx/hal_lld.h
Original file line number Diff line number Diff line change
Expand Up @@ -802,6 +802,10 @@
#error "LSE not enabled, required by STM32_MCOSEL"
#endif

#if (FOME_STM32_LSE_WAIT_MAX > 0) && (FOME_STM32_LSE_WAIT_MAX_RTCSEL == STM32_RTCSEL_LSE)
#error "LSE not enabled, required by FOME_STM32_LSE_WAIT_MAX_RTCSEL"
#endif

#if STM32_RTCSEL == STM32_RTCSEL_LSE
#error "LSE not enabled, required by STM32_RTCSEL"
#endif
Expand Down
4 changes: 4 additions & 0 deletions os/hal/ports/STM32/STM32L1xx/hal_lld.h
Original file line number Diff line number Diff line change
Expand Up @@ -540,6 +540,10 @@
#error "LSE not enabled, required by STM32_MCOSEL"
#endif

#if (FOME_STM32_LSE_WAIT_MAX > 0) && (FOME_STM32_LSE_WAIT_MAX_RTCSEL == STM32_RTCSEL_LSE)
#error "LSE not enabled, required by FOME_STM32_LSE_WAIT_MAX_RTCSEL"
#endif

#if STM32_RTCSEL == STM32_RTCSEL_LSE
#error "LSE not enabled, required by STM32_RTCSEL"
#endif
Expand Down

0 comments on commit b4d702a

Please sign in to comment.