Skip to content

Commit 2432efa

Browse files
committed
Update file headers, add uart.h, fix includes
Normalize @file tags in multiple board and font source/header files for consistency; replace FUNC_PREFIX GpioWrite with gpio::Write in ILI9341 to use the gpio namespace; silence -Wunused-parameter for GD32H7 in gd32xxxx.h; add a new uart.h wrapper providing inline UART helpers for GD32; and add ../lib-board/include to EXTRA_INCLUDES in lib-hwclock/Rules.mk so builds find board headers.
1 parent f12b551 commit 2432efa

12 files changed

Lines changed: 79 additions & 9 deletions

File tree

lib-board/include/board_statusled.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/**
2-
* @file hal_statusled.h
2+
* @file board_statusled.h
33
*
44
*/
55
/* Copyright (C) 2025-2026 by Arjan van Vught mailto:info@gd32-dmx.org

lib-board/src/gd32/board_init.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/**
2-
* @file hal_init.cpp
2+
* @file board_init.cpp
33
*
44
*/
55
/* Copyright (C) 2025-2026 by Arjan van Vught mailto:info@gd32-dmx.org

lib-board/src/gd32/board_reboot.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/**
2-
* @file hal_reboot.cpp
2+
* @file board_reboot.cpp
33
*
44
*/
55
/* Copyright (C) 2025-2026 by Arjan van Vught mailto:info@gd32-dmx.org

lib-board/src/gd32/board_statusled.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/**
2-
* @file hal_statusled.cpp
2+
* @file board_statusled.cpp
33
*
44
*/
55
/* Copyright (C) 2025 by Arjan van Vught mailto:info@gd32-dmx.org

lib-board/src/h3/board_init.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/**
2-
* @file hal_init.cpp
2+
* @file board_init.cpp
33
*
44
*/
55
/* Copyright (C) 2018-2025 by Arjan van Vught mailto:info@gd32-dmx.org

lib-board/src/h3/board_reboot.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/**
2-
* @file hal_reboot.cpp
2+
* @file board_reboot.cpp
33
*
44
*/
55
/* Copyright (C) 2025-2026 by Arjan van Vught mailto:info@gd32-dmx.org

lib-board/src/h3/board_statusled.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/**
2-
* @file hal_statusled.cpp
2+
* @file board_statusled.cpp
33
*
44
*/
55
/* Copyright (C) 2025-2026 by Arjan van Vught mailto:info@gd32-dmx.org

lib-device/src/font_cp437.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/**
2-
* @file font_cp437.cpp
2+
* @file font_cp437.h
33
*
44
*/
55
/* Copyright (C) 2019-2026 by Arjan van Vught mailto:info@gd32-dmx.org

lib-display/include/spi/ili9341.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -205,7 +205,7 @@ class ILI9341 : public Paint {
205205
rotate_ = nRotation;
206206
}
207207

208-
void SetBackLight(uint32_t value) { FUNC_PREFIX(GpioWrite(SPI_LCD_BL_GPIO, value == 0 ? LOW : HIGH)); }
208+
void SetBackLight(uint32_t value) { gpio::Write(SPI_LCD_BL_GPIO, value == 0 ? LOW : HIGH); }
209209

210210
void EnableDisplay(bool enable) { WriteCommand(enable ? ili9341::cmd::DISPON : ili9341::cmd::DISPOFF); }
211211

lib-gd32/include/gd32xxxx.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,7 @@
5050
#elif defined(GD32F407) || defined(GD32F450) || defined(GD32F470)
5151
#include "gd32f4xx.h" // IWYU pragma: keep
5252
#elif defined(GD32H757) || defined(GD32H759)
53+
#pragma GCC diagnostic ignored "-Wunused-parameter"
5354
#include "gd32h7xx.h" // IWYU pragma: keep
5455
#else
5556
#error MCU is not supported

0 commit comments

Comments
 (0)