Skip to content

Commit 6517c38

Browse files
committed
removed casting to (uint32_t) from F_CPU flag definition to maintain compatibility with other libraries
1 parent e764720 commit 6517c38

1 file changed

Lines changed: 10 additions & 10 deletions

File tree

utils/boards/boards.txt

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -691,25 +691,25 @@ gd_generic_gd32f30x.menu.opt.ogstd.build.flags.ldspecs=
691691

692692
# MCU clock
693693
gd_generic_gd32f30x.menu.mcu_clock.f120mhz_hxtal=120MHz HXTAL PLL (default)
694-
gd_generic_gd32f30x.menu.mcu_clock.f120mhz_hxtal.build.fcpu_flag=-DF_CPU=((uint32_t)(120000000))
694+
gd_generic_gd32f30x.menu.mcu_clock.f120mhz_hxtal.build.fcpu_flag=-DF_CPU=120000000
695695
gd_generic_gd32f30x.menu.mcu_clock.f108mhz_hxtal=108MHz HXTAL PLL
696-
gd_generic_gd32f30x.menu.mcu_clock.f108mhz_hxtal.build.fcpu_flag=-D__SYSTEM_CLOCK_108M_PLL_HXTAL=((uint32_t)(108000000)) -DF_CPU=((uint32_t)(108000000))
696+
gd_generic_gd32f30x.menu.mcu_clock.f108mhz_hxtal.build.fcpu_flag=-D__SYSTEM_CLOCK_108M_PLL_HXTAL=((uint32_t)(108000000)) -DF_CPU=108000000
697697
gd_generic_gd32f30x.menu.mcu_clock.f72mhz_hxtal=72MHz HXTAL PLL
698-
gd_generic_gd32f30x.menu.mcu_clock.f72mhz_hxtal.build.fcpu_flag=-D__SYSTEM_CLOCK_72M_PLL_HXTAL=((uint32_t)(72000000)) -DF_CPU=((uint32_t)(72000000))
698+
gd_generic_gd32f30x.menu.mcu_clock.f72mhz_hxtal.build.fcpu_flag=-D__SYSTEM_CLOCK_72M_PLL_HXTAL=((uint32_t)(72000000)) -DF_CPU=72000000
699699
gd_generic_gd32f30x.menu.mcu_clock.f48mhz_hxtal=48MHz HXTAL PLL
700-
gd_generic_gd32f30x.menu.mcu_clock.f48mhz_hxtal.build.fcpu_flag=-D__SYSTEM_CLOCK_48M_PLL_HXTAL=((uint32_t)(48000000)) -DF_CPU=((uint32_t)(48000000))
700+
gd_generic_gd32f30x.menu.mcu_clock.f48mhz_hxtal.build.fcpu_flag=-D__SYSTEM_CLOCK_48M_PLL_HXTAL=((uint32_t)(48000000)) -DF_CPU=48000000
701701
gd_generic_gd32f30x.menu.mcu_clock.f8mhz_hxtal=8MHz HXTAL No PLL
702-
gd_generic_gd32f30x.menu.mcu_clock.f8mhz_hxtal.build.fcpu_flag=-D__SYSTEM_CLOCK_HXTAL=((uint32_t)(__HXTAL)) -DF_CPU=((uint32_t)(8000000))
702+
gd_generic_gd32f30x.menu.mcu_clock.f8mhz_hxtal.build.fcpu_flag=-D__SYSTEM_CLOCK_HXTAL=((uint32_t)(__HXTAL)) -DF_CPU=8000000
703703
gd_generic_gd32f30x.menu.mcu_clock.f120mhz_irc8m=120 MHz IRC8M PLL
704-
gd_generic_gd32f30x.menu.mcu_clock.f120mhz_irc8m.build.fcpu_flag=-D__SYSTEM_CLOCK_120M_PLL_IRC8M=((uint32_t)(120000000)) -DF_CPU=((uint32_t)(120000000))
704+
gd_generic_gd32f30x.menu.mcu_clock.f120mhz_irc8m.build.fcpu_flag=-D__SYSTEM_CLOCK_120M_PLL_IRC8M=((uint32_t)(120000000)) -DF_CPU=120000000
705705
gd_generic_gd32f30x.menu.mcu_clock.f108mhz_irc8m=108MHz IRC8M PLL
706-
gd_generic_gd32f30x.menu.mcu_clock.f108mhz_irc8m.build.fcpu_flag=-D__SYSTEM_CLOCK_108M_PLL_IRC8M=((uint32_t)(108000000)) -DF_CPU=((uint32_t)(108000000))
706+
gd_generic_gd32f30x.menu.mcu_clock.f108mhz_irc8m.build.fcpu_flag=-D__SYSTEM_CLOCK_108M_PLL_IRC8M=((uint32_t)(108000000)) -DF_CPU=108000000
707707
gd_generic_gd32f30x.menu.mcu_clock.f72mhz_irc8m=72MHz IRC8M PLL
708-
gd_generic_gd32f30x.menu.mcu_clock.f72mhz_irc8m.build.fcpu_flag=-D__SYSTEM_CLOCK_72M_PLL_IRC8M=((uint32_t)(72000000)) -DF_CPU=((uint32_t)(72000000))
708+
gd_generic_gd32f30x.menu.mcu_clock.f72mhz_irc8m.build.fcpu_flag=-D__SYSTEM_CLOCK_72M_PLL_IRC8M=((uint32_t)(72000000)) -DF_CPU=72000000
709709
gd_generic_gd32f30x.menu.mcu_clock.f48mhz_irc8m=48MHz IRC8M PLL
710-
gd_generic_gd32f30x.menu.mcu_clock.f48mhz_irc8m.build.fcpu_flag=-D__SYSTEM_CLOCK_48M_PLL_IRC8M=((uint32_t)(48000000)) -DF_CPU=((uint32_t)(48000000))
710+
gd_generic_gd32f30x.menu.mcu_clock.f48mhz_irc8m.build.fcpu_flag=-D__SYSTEM_CLOCK_48M_PLL_IRC8M=((uint32_t)(48000000)) -DF_CPU=48000000
711711
gd_generic_gd32f30x.menu.mcu_clock.f8mhz_irc8m=8MHz IRC8M No PLL
712-
gd_generic_gd32f30x.menu.mcu_clock.f8mhz_irc8m.build.fcpu_flag=-D__SYSTEM_CLOCK_IRC8M=((uint32_t)(__IRC8M)) -DF_CPU=((uint32_t)(8000000))
712+
gd_generic_gd32f30x.menu.mcu_clock.f8mhz_irc8m.build.fcpu_flag=-D__SYSTEM_CLOCK_IRC8M=((uint32_t)(__IRC8M)) -DF_CPU=8000000
713713

714714
# FLASH Start Offset
715715
gd_generic_gd32f30x.menu.offset.x00000=None

0 commit comments

Comments
 (0)