Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

stable_21.11.x.FOME: add ChibiOS FOME_STM32_LSE_WAIT_MAX macro warnings #3

Open
wants to merge 1 commit into
base: stable_21.11.x.FOME
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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