mirror of https://github.com/wolfSSL/wolfBoot.git
Fix potential integer overflow in shifts (cppcheck)
parent
95d58244a9
commit
cb77e4273c
|
@ -705,11 +705,11 @@ static void dbgu_init(void) {
|
||||||
PMC_CLOCK_EN(GPIOB_PMCID);
|
PMC_CLOCK_EN(GPIOB_PMCID);
|
||||||
|
|
||||||
/* Disable Pull */
|
/* Disable Pull */
|
||||||
GPIO_PPUDR(DBGU_GPIO) = (1 << DBGU_PIN_TX) | (1 << DBGU_PIN_RX);
|
GPIO_PPUDR(DBGU_GPIO) = (1U << DBGU_PIN_TX) | (1U << DBGU_PIN_RX);
|
||||||
GPIO_PPDDR(DBGU_GPIO) = (1 << DBGU_PIN_TX) | (1 << DBGU_PIN_RX);
|
GPIO_PPDDR(DBGU_GPIO) = (1U << DBGU_PIN_TX) | (1U << DBGU_PIN_RX);
|
||||||
|
|
||||||
/* Set "Peripheral A" */
|
/* Set "Peripheral A" */
|
||||||
GPIO_ASR(DBGU_GPIO) = (1 << DBGU_PIN_TX) | (1 << DBGU_PIN_RX);
|
GPIO_ASR(DBGU_GPIO) = (1U << DBGU_PIN_TX) | (1U << DBGU_PIN_RX);
|
||||||
|
|
||||||
/* Enable the peripheral clock for the DBGU */
|
/* Enable the peripheral clock for the DBGU */
|
||||||
PMC_CLOCK_EN(DBGU_PMCID);
|
PMC_CLOCK_EN(DBGU_PMCID);
|
||||||
|
|
Loading…
Reference in New Issue