summaryrefslogtreecommitdiff
path: root/hw/bsp
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 /hw/bsp
parent53deb6cc6cf97055fb66f25509b2cdce0b17a3c7 (diff)
fix more warnings
Diffstat (limited to 'hw/bsp')
-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
12 files changed, 11 insertions, 11 deletions
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()