Merge pull request #6909 from jflyper/bfdev-fix-singed-unsigned-comparison-warning
target/system_stm32f{4,7}xxx.c: Prevent signed and unsigned comparison warning
This commit is contained in:
commit
a663588dd0
|
@ -505,7 +505,7 @@ void OverclockRebootIfNecessary(uint32_t overclockLevel)
|
||||||
const pllConfig_t * const pll = overclockLevels + overclockLevel;
|
const pllConfig_t * const pll = overclockLevels + overclockLevel;
|
||||||
|
|
||||||
// Reboot to adjust overclock frequency
|
// Reboot to adjust overclock frequency
|
||||||
if (SystemCoreClock != (pll->n / pll->p) * 1000000) {
|
if (SystemCoreClock != (pll->n / pll->p) * 1000000U) {
|
||||||
currentOverclockLevel = overclockLevel;
|
currentOverclockLevel = overclockLevel;
|
||||||
__disable_irq();
|
__disable_irq();
|
||||||
NVIC_SystemReset();
|
NVIC_SystemReset();
|
||||||
|
|
|
@ -281,7 +281,7 @@ void OverclockRebootIfNecessary(uint32_t overclockLevel)
|
||||||
const pllConfig_t * const pll = overclockLevels + overclockLevel;
|
const pllConfig_t * const pll = overclockLevels + overclockLevel;
|
||||||
|
|
||||||
// Reboot to adjust overclock frequency
|
// Reboot to adjust overclock frequency
|
||||||
if (SystemCoreClock != (pll->n / pll->p) * 1000000) {
|
if (SystemCoreClock != (pll->n / pll->p) * 1000000U) {
|
||||||
REQUEST_OVERCLOCK = REQUEST_OVERCLOCK_MAGIC_COOKIE;
|
REQUEST_OVERCLOCK = REQUEST_OVERCLOCK_MAGIC_COOKIE;
|
||||||
CURRENT_OVERCLOCK_LEVEL = overclockLevel;
|
CURRENT_OVERCLOCK_LEVEL = overclockLevel;
|
||||||
__disable_irq();
|
__disable_irq();
|
||||||
|
|
Loading…
Reference in New Issue