summaryrefslogtreecommitdiff
path: root/hw/bsp/max32666
diff options
context:
space:
mode:
authorhathach <[email protected]>2024-08-14 23:59:35 +0700
committerhathach <[email protected]>2024-08-14 23:59:35 +0700
commit0be427bae95ef0fe94cb6f0b405eb5c3bbae160a (patch)
treebc517669ab7025e974eed825b08478610e1bf2d9 /hw/bsp/max32666
parentf6b96f7ea9f0d0c4872e1e290bf59f65c68a7bf3 (diff)
use max32 cmsis, fix NVIC_GetEnableIRQ() not defined when using with CMISIS < 5
Diffstat (limited to 'hw/bsp/max32666')
-rw-r--r--hw/bsp/max32666/family.c15
-rw-r--r--hw/bsp/max32666/family.cmake1
-rw-r--r--hw/bsp/max32666/family.mk1
3 files changed, 13 insertions, 4 deletions
diff --git a/hw/bsp/max32666/family.c b/hw/bsp/max32666/family.c
index 1398e09ff..8ee4b6762 100644
--- a/hw/bsp/max32666/family.c
+++ b/hw/bsp/max32666/family.c
@@ -24,13 +24,24 @@
* This file is part of the TinyUSB stack.
*/
-#include "board.h"
-#include "bsp/board_api.h"
+#ifdef __GNUC__
+#pragma GCC diagnostic push
+#pragma GCC diagnostic ignored "-Wstrict-prototypes" // _mxc_crit_get_state()
+#endif
+
#include "gpio.h"
+#include "mxc_sys.h"
#include "mcr_regs.h"
#include "mxc_device.h"
#include "uart.h"
+#ifdef __GNUC__
+#pragma GCC diagnostic pop
+#endif
+
+#include "board.h"
+#include "bsp/board_api.h"
+
//--------------------------------------------------------------------+
// Forward USB interrupt events to TinyUSB IRQ Handler
//--------------------------------------------------------------------+
diff --git a/hw/bsp/max32666/family.cmake b/hw/bsp/max32666/family.cmake
index eb9d2175f..4a3f1a428 100644
--- a/hw/bsp/max32666/family.cmake
+++ b/hw/bsp/max32666/family.cmake
@@ -70,7 +70,6 @@ function(add_board_target BOARD_TARGET)
)
target_include_directories(${BOARD_TARGET} PUBLIC
${CMAKE_CURRENT_FUNCTION_LIST_DIR}
- ${CMSIS_5}/CMSIS/Core/Include
${MAX32_CMSIS}/Include
${MAX32_CMSIS}/Device/Maxim/MAX32665/Include
${MAX32_PERIPH}/Include/MAX32665
diff --git a/hw/bsp/max32666/family.mk b/hw/bsp/max32666/family.mk
index 720d994ef..b4f7d1e57 100644
--- a/hw/bsp/max32666/family.mk
+++ b/hw/bsp/max32666/family.mk
@@ -82,7 +82,6 @@ SRC_C += \
INC += \
$(TOP)/$(BOARD_PATH) \
- $(TOP)/lib/CMSIS_5/CMSIS/Core/Include \
$(TOP)/$(MAX32_CMSIS)/Include \
$(TOP)/$(MAX32_CMSIS)/Device/Maxim/MAX32665/Include \
$(TOP)/$(MAX32_PERIPH)/Include/MAX32665 \