diff options
| author | hathach <[email protected]> | 2021-10-17 16:26:27 +0700 |
|---|---|---|
| committer | hathach <[email protected]> | 2021-10-17 16:36:53 +0700 |
| commit | a5f516893bbd539f11fb8d1cbb5b6db5a50fc632 (patch) | |
| tree | 1d9f344ae3b7ed1a56b27bcbb11c4ff9d1ae07de /hw/bsp/stm32f4 | |
| parent | 0b249618b0469529da748e3e5478751cd56acd31 (diff) | |
more with -Wcast-qual
Diffstat (limited to 'hw/bsp/stm32f4')
| -rw-r--r-- | hw/bsp/stm32f4/family.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/hw/bsp/stm32f4/family.c b/hw/bsp/stm32f4/family.c index cf0cb2b08..31f27fa3f 100644 --- a/hw/bsp/stm32f4/family.c +++ b/hw/bsp/stm32f4/family.c @@ -160,7 +160,7 @@ int board_uart_read(uint8_t* buf, int len) int board_uart_write(void const * buf, int len) { #ifdef UART_DEV - HAL_UART_Transmit(&UartHandle, (uint8_t*) buf, len, 0xffff); + HAL_UART_Transmit(&UartHandle, (uint8_t*)(uintptr_t) buf, len, 0xffff); return len; #else (void) buf; (void) len; (void) UartHandle; |
