fix more warnings

This commit is contained in:
hathach 2025-10-15 15:43:23 +07:00
parent 53deb6cc6c
commit 55227a6146
No known key found for this signature in database
GPG Key ID: 26FAB84F615C3C52
15 changed files with 14 additions and 12 deletions

1
.gitignore vendored
View File

@ -20,6 +20,7 @@ latex
*.ewt
*.ewd
*.hex
.venv/
cmake_install.cmake
CMakeCache.txt
settings/

View File

@ -21,3 +21,4 @@ board:frdm_kl25z
# lpc55 has weird error 'ncm_interface' causes a section type conflict with 'ntb_parameters'
family:lpc55
family:nuc126
family:nuc100_120

View File

@ -159,6 +159,7 @@ TU_ATTR_UNUSED void _start(void) {
#ifdef __clang__
void _exit (int __status) {
(void) __status;
while (1) {}
}
#endif

View File

@ -167,6 +167,7 @@ TU_ATTR_UNUSED void _start(void) {
#ifdef __clang__
void _exit (int __status) {
(void) __status;
while (1) {}
}
#endif

View File

@ -159,6 +159,7 @@ TU_ATTR_UNUSED void _start(void) {
#ifdef __clang__
void _exit (int __status) {
(void) __status;
while (1) {}
}
#endif

View File

@ -96,7 +96,11 @@ void board_init(void) {
// 0x1B // Host + Device + OTG + AHB
};
uint32_t const clk_en = CFG_TUD_ENABLED ? USBCLK_DEVCIE : USBCLK_HOST;
#if CFG_TUD_ENABLED
uint32_t const clk_en = USBCLK_DEVCIE;
#else
uint32_t const clk_en = USBCLK_HOST;
#endif
LPC_USB->OTGClkCtrl = clk_en;
while ((LPC_USB->OTGClkSt & clk_en) != clk_en) {}

View File

@ -138,6 +138,7 @@ TU_ATTR_UNUSED void _start(void) {
#ifdef __clang__
void _exit (int __status) {
(void) __status;
while (1) {}
}
#endif

View File

@ -233,6 +233,7 @@ TU_ATTR_UNUSED void _start(void) {
#ifdef __clang__
void _exit (int __status) {
(void) __status;
while (1) {}
}
#endif

View File

@ -333,6 +333,7 @@ TU_ATTR_UNUSED void _start(void) {
#ifdef __clang__
void _exit (int __status) {
(void) __status;
while (1) {}
}
#endif

View File

@ -2,6 +2,4 @@ set(JLINK_DEVICE NUC120LE3)
set(LD_FILE_GNU ${CMAKE_CURRENT_LIST_DIR}/nuc120_flash.ld)
function(update_board TARGET)
target_compile_definitions(${TARGET} PUBLIC
)
endfunction()

View File

@ -3,6 +3,4 @@ set(JLINK_DEVICE NUC121SC2AE)
set(LD_FILE_GNU ${CMAKE_CURRENT_LIST_DIR}/nuc121_flash.ld)
function(update_board TARGET)
target_compile_definitions(${TARGET} PUBLIC
)
endfunction()

View File

@ -3,6 +3,4 @@ set(JLINK_DEVICE NUC125SC2AE)
set(LD_FILE_GNU ${CMAKE_CURRENT_LIST_DIR}/nuc125_flash.ld)
function(update_board TARGET)
target_compile_definitions(${TARGET} PUBLIC
)
endfunction()

View File

@ -2,6 +2,4 @@ set(JLINK_DEVICE NUC126VG4AE)
set(LD_FILE_GNU ${CMAKE_CURRENT_LIST_DIR}/nuc126_flash.ld)
function(update_board TARGET)
target_compile_definitions(${TARGET} PUBLIC
)
endfunction()

View File

@ -2,6 +2,4 @@ set(JLINK_DEVICE NUC505YO13Y)
set(LD_FILE_GNU ${CMAKE_CURRENT_LIST_DIR}/nuc505_flashtoram.ld)
function(update_board TARGET)
target_compile_definitions(${TARGET} PUBLIC
)
endfunction()

View File

@ -51,7 +51,7 @@ deps_optional = {
'nrf'],
'hw/mcu/nuvoton': ['https://github.com/majbthrd/nuc_driver.git',
'2204191ec76283371419fbcec207da02e1bc22fa',
'nuc'],
'nuc100_120 nuc121_125 nuc126 nuc505'],
'hw/mcu/nxp/lpcopen': ['https://github.com/hathach/nxp_lpcopen.git',
'b41cf930e65c734d8ec6de04f1d57d46787c76ae',
'lpc11 lpc13 lpc15 lpc17 lpc18 lpc40 lpc43'],