summaryrefslogtreecommitdiff
path: root/hw
diff options
context:
space:
mode:
authorhathach <[email protected]>2024-04-17 23:08:06 +0700
committerhathach <[email protected]>2024-04-19 23:16:59 +0700
commit824e39ddeb762a0876702304ac95ea3b1d40cb5a (patch)
tree27fd66a64a37c8986fc16ff1b3e8780c63864c0c /hw
parent5ca68ec049c56cd04db8fde2c9fb50f19a4e9263 (diff)
more clang update
Diffstat (limited to 'hw')
-rw-r--r--hw/bsp/board_api.h3
-rw-r--r--hw/bsp/stm32h7/family.cmake9
2 files changed, 7 insertions, 5 deletions
diff --git a/hw/bsp/board_api.h b/hw/bsp/board_api.h
index 3b9f211a2..418ce3551 100644
--- a/hw/bsp/board_api.h
+++ b/hw/bsp/board_api.h
@@ -32,7 +32,10 @@ extern "C" {
#endif
#include <stdint.h>
+#include <inttypes.h>
#include <stdbool.h>
+#include <string.h>
+
#include "tusb.h"
#if CFG_TUSB_OS == OPT_OS_FREERTOS
diff --git a/hw/bsp/stm32h7/family.cmake b/hw/bsp/stm32h7/family.cmake
index ab9ba3fbb..a4123dda7 100644
--- a/hw/bsp/stm32h7/family.cmake
+++ b/hw/bsp/stm32h7/family.cmake
@@ -67,15 +67,14 @@ function(add_board_target BOARD_TARGET)
-nostartfiles
--specs=nosys.specs --specs=nano.specs
)
- elseif (CMAKE_C_COMPILER_ID STREQUAL "IAR")
- target_link_options(${BOARD_TARGET} PUBLIC
- "LINKER:--config=${LD_FILE_IAR}"
- )
elseif (CMAKE_C_COMPILER_ID STREQUAL "Clang")
target_link_options(${BOARD_TARGET} PUBLIC
- #-ldummyhost
"LINKER:--script=${LD_FILE_GNU}"
)
+ elseif (CMAKE_C_COMPILER_ID STREQUAL "IAR")
+ target_link_options(${BOARD_TARGET} PUBLIC
+ "LINKER:--config=${LD_FILE_IAR}"
+ )
endif ()
endif ()
endfunction()