summaryrefslogtreecommitdiff
path: root/hw/bsp/tm4c
diff options
context:
space:
mode:
authorhathach <[email protected]>2026-04-17 00:10:44 +0700
committerhathach <[email protected]>2026-04-17 10:16:31 +0700
commita6dcc3f089bd4468949ea9e138fea9f80025577e (patch)
treecb12a05886c51eba2c76702fdc67cf09a90ad1b3 /hw/bsp/tm4c
parent81641e35c67ea8197397d1d03c666e94db6fdaec (diff)
fix some Wconversion warnings
Diffstat (limited to 'hw/bsp/tm4c')
-rw-r--r--hw/bsp/tm4c/family.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/hw/bsp/tm4c/family.c b/hw/bsp/tm4c/family.c
index 6988a264e..fe4737e50 100644
--- a/hw/bsp/tm4c/family.c
+++ b/hw/bsp/tm4c/family.c
@@ -36,7 +36,7 @@ static void board_uart_init(void) {
// BAUDRATE = 115200, with SystemCoreClock = 50 Mhz refer manual for calculation
// - BRDI = SystemCoreClock / (16* baud)
// - BRDF = int(fraction*64 + 0.5)
- UART0->CTL &= ~(1 << 0); // Disable UART0 by clearing UARTEN bit in the UARTCTL register
+ UART0->CTL &= ~(1U << 0); // Disable UART0 by clearing UARTEN bit in the UARTCTL register
UART0->IBRD = 27; // Write the integer portion of the BRD to the UARTIRD register
UART0->FBRD = 8; // Write the fractional portion of the BRD to the UARTFBRD registerer