We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8b2e38a commit 3ed9211Copy full SHA for 3ed9211
hal/sama5d3.c
@@ -705,11 +705,11 @@ static void dbgu_init(void) {
705
PMC_CLOCK_EN(GPIOB_PMCID);
706
707
/* Disable Pull */
708
- GPIO_PPUDR(DBGU_GPIO) = (1 << DBGU_PIN_TX) | (1 << DBGU_PIN_RX);
709
- GPIO_PPDDR(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) = (1U << DBGU_PIN_TX) | (1U << DBGU_PIN_RX);
710
711
/* Set "Peripheral A" */
712
- GPIO_ASR(DBGU_GPIO) = (1 << DBGU_PIN_TX) | (1 << DBGU_PIN_RX);
+ GPIO_ASR(DBGU_GPIO) = (1U << DBGU_PIN_TX) | (1U << DBGU_PIN_RX);
713
714
/* Enable the peripheral clock for the DBGU */
715
PMC_CLOCK_EN(DBGU_PMCID);
0 commit comments