summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorhathach <[email protected]>2025-10-15 15:43:23 +0700
committerhathach <[email protected]>2025-10-15 16:37:01 +0700
commit55227a61466ffc39c3605b33be614d725dfe4070 (patch)
tree1a34ab99284ea7d07a30bf3e9cef7bb617e295ab
parent53deb6cc6cf97055fb66f25509b2cdce0b17a3c7 (diff)
fix more warnings
-rw-r--r--.gitignore1
-rw-r--r--examples/device/net_lwip_webserver/skip.txt1
-rw-r--r--hw/bsp/kinetis_k/family.c1
-rw-r--r--hw/bsp/kinetis_k32l2/family.c1
-rw-r--r--hw/bsp/kinetis_kl/family.c1
-rw-r--r--hw/bsp/lpc17/family.c6
-rw-r--r--hw/bsp/lpc51/family.c1
-rw-r--r--hw/bsp/lpc54/family.c1
-rw-r--r--hw/bsp/lpc55/family.c1
-rw-r--r--hw/bsp/nuc100_120/boards/nutiny_sdk_nuc120/board.cmake2
-rw-r--r--hw/bsp/nuc121_125/boards/nutiny_sdk_nuc121/board.cmake2
-rw-r--r--hw/bsp/nuc121_125/boards/nutiny_sdk_nuc125/board.cmake2
-rw-r--r--hw/bsp/nuc126/boards/nutiny_nuc126v/board.cmake2
-rw-r--r--hw/bsp/nuc505/boards/nutiny_sdk_nuc505/board.cmake2
-rwxr-xr-xtools/get_deps.py2
15 files changed, 14 insertions, 12 deletions
diff --git a/.gitignore b/.gitignore
index a4045f120..977911dff 100644
--- a/.gitignore
+++ b/.gitignore
@@ -20,6 +20,7 @@ latex
*.ewt
*.ewd
*.hex
+.venv/
cmake_install.cmake
CMakeCache.txt
settings/
diff --git a/examples/device/net_lwip_webserver/skip.txt b/examples/device/net_lwip_webserver/skip.txt
index 1b5482a57..ecb9eb7ec 100644
--- a/examples/device/net_lwip_webserver/skip.txt
+++ b/examples/device/net_lwip_webserver/skip.txt
@@ -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
diff --git a/hw/bsp/kinetis_k/family.c b/hw/bsp/kinetis_k/family.c
index 59d80fa18..816c5c87e 100644
--- a/hw/bsp/kinetis_k/family.c
+++ b/hw/bsp/kinetis_k/family.c
@@ -159,6 +159,7 @@ TU_ATTR_UNUSED void _start(void) {
#ifdef __clang__
void _exit (int __status) {
+ (void) __status;
while (1) {}
}
#endif
diff --git a/hw/bsp/kinetis_k32l2/family.c b/hw/bsp/kinetis_k32l2/family.c
index 2fcc1b2af..2062b8b18 100644
--- a/hw/bsp/kinetis_k32l2/family.c
+++ b/hw/bsp/kinetis_k32l2/family.c
@@ -167,6 +167,7 @@ TU_ATTR_UNUSED void _start(void) {
#ifdef __clang__
void _exit (int __status) {
+ (void) __status;
while (1) {}
}
#endif
diff --git a/hw/bsp/kinetis_kl/family.c b/hw/bsp/kinetis_kl/family.c
index fe864f3a0..000006372 100644
--- a/hw/bsp/kinetis_kl/family.c
+++ b/hw/bsp/kinetis_kl/family.c
@@ -159,6 +159,7 @@ TU_ATTR_UNUSED void _start(void) {
#ifdef __clang__
void _exit (int __status) {
+ (void) __status;
while (1) {}
}
#endif
diff --git a/hw/bsp/lpc17/family.c b/hw/bsp/lpc17/family.c
index 7d3231f6a..1edab6cd4 100644
--- a/hw/bsp/lpc17/family.c
+++ b/hw/bsp/lpc17/family.c
@@ -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) {}
diff --git a/hw/bsp/lpc51/family.c b/hw/bsp/lpc51/family.c
index 0afe33d41..c963b76bd 100644
--- a/hw/bsp/lpc51/family.c
+++ b/hw/bsp/lpc51/family.c
@@ -138,6 +138,7 @@ TU_ATTR_UNUSED void _start(void) {
#ifdef __clang__
void _exit (int __status) {
+ (void) __status;
while (1) {}
}
#endif
diff --git a/hw/bsp/lpc54/family.c b/hw/bsp/lpc54/family.c
index 9b9b5841b..094866d9b 100644
--- a/hw/bsp/lpc54/family.c
+++ b/hw/bsp/lpc54/family.c
@@ -233,6 +233,7 @@ TU_ATTR_UNUSED void _start(void) {
#ifdef __clang__
void _exit (int __status) {
+ (void) __status;
while (1) {}
}
#endif
diff --git a/hw/bsp/lpc55/family.c b/hw/bsp/lpc55/family.c
index dbf8d71b7..f0ded96a7 100644
--- a/hw/bsp/lpc55/family.c
+++ b/hw/bsp/lpc55/family.c
@@ -333,6 +333,7 @@ TU_ATTR_UNUSED void _start(void) {
#ifdef __clang__
void _exit (int __status) {
+ (void) __status;
while (1) {}
}
#endif
diff --git a/hw/bsp/nuc100_120/boards/nutiny_sdk_nuc120/board.cmake b/hw/bsp/nuc100_120/boards/nutiny_sdk_nuc120/board.cmake
index 79c0d61ca..02198d4c3 100644
--- a/hw/bsp/nuc100_120/boards/nutiny_sdk_nuc120/board.cmake
+++ b/hw/bsp/nuc100_120/boards/nutiny_sdk_nuc120/board.cmake
@@ -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()
diff --git a/hw/bsp/nuc121_125/boards/nutiny_sdk_nuc121/board.cmake b/hw/bsp/nuc121_125/boards/nutiny_sdk_nuc121/board.cmake
index f910b128f..bffeffc37 100644
--- a/hw/bsp/nuc121_125/boards/nutiny_sdk_nuc121/board.cmake
+++ b/hw/bsp/nuc121_125/boards/nutiny_sdk_nuc121/board.cmake
@@ -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()
diff --git a/hw/bsp/nuc121_125/boards/nutiny_sdk_nuc125/board.cmake b/hw/bsp/nuc121_125/boards/nutiny_sdk_nuc125/board.cmake
index d9bbebfba..7909c0a46 100644
--- a/hw/bsp/nuc121_125/boards/nutiny_sdk_nuc125/board.cmake
+++ b/hw/bsp/nuc121_125/boards/nutiny_sdk_nuc125/board.cmake
@@ -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()
diff --git a/hw/bsp/nuc126/boards/nutiny_nuc126v/board.cmake b/hw/bsp/nuc126/boards/nutiny_nuc126v/board.cmake
index ece3e774a..8d5c73e02 100644
--- a/hw/bsp/nuc126/boards/nutiny_nuc126v/board.cmake
+++ b/hw/bsp/nuc126/boards/nutiny_nuc126v/board.cmake
@@ -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()
diff --git a/hw/bsp/nuc505/boards/nutiny_sdk_nuc505/board.cmake b/hw/bsp/nuc505/boards/nutiny_sdk_nuc505/board.cmake
index 079231dc5..2ece10e33 100644
--- a/hw/bsp/nuc505/boards/nutiny_sdk_nuc505/board.cmake
+++ b/hw/bsp/nuc505/boards/nutiny_sdk_nuc505/board.cmake
@@ -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()
diff --git a/tools/get_deps.py b/tools/get_deps.py
index c1e2c075d..35f3b3e92 100755
--- a/tools/get_deps.py
+++ b/tools/get_deps.py
@@ -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'],