Skip to content
Open
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
10 changes: 5 additions & 5 deletions os/hal/ports/AT32/AT32F402_405/hal_lld.h
Original file line number Diff line number Diff line change
Expand Up @@ -194,9 +194,9 @@
* @name PWC_LDOOV register bits definitions
* @{
*/
#define AT32_LDOOVSEL_LEV0 (0 << 0) /**< LDOOVSEL level 0. */
#define AT32_LDOOVSEL_LEV2 (2 << 0) /**< LDOOVSEL level 2. */
#define AT32_LDOOVSEL_LEV3 (3 << 0) /**< LDOOVSEL level 3. */
#define AT32_LDOOVSEL_LEV1 (1 << 0) /**< LDOOVSEL level 1.1V. */
#define AT32_LDOOVSEL_LEV2 (2 << 0) /**< LDOOVSEL level 1.2V. */
#define AT32_LDOOVSEL_LEV3 (3 << 0) /**< LDOOVSEL level 1.3V. */
/** @} */

/**
Expand Down Expand Up @@ -1064,12 +1064,12 @@
#error "AT32 bus clock exceeding maximum frequency when LDO is 1.2V"
#endif

#elif AT32_LDOOVSEL == AT32_LDOOVSEL_LEV0
#elif AT32_LDOOVSEL == AT32_LDOOVSEL_LEV1

#if (AT32_HCLK > 108000000) || \
(AT32_PCLK1 > AT32_HCLK) || \
(AT32_PCLK2 > AT32_HCLK)
#error "AT32 bus clock exceeding maximum frequency when LDO is 1.0V"
#error "AT32 bus clock exceeding maximum frequency when LDO is 1.1V"
#endif

#else
Expand Down
Loading