Skip to content

Commit ad0a478

Browse files
committed
modules: hal_nordic: fix compiler error with CMSIS_6
hal_nordic module includes CMSIS header files even when not compiling for Cortex-M e.g. for babblesim where arch is posix and when updating CMSIS module to CMSIS_6, this results in a compiler error. Signed-off-by: Sudan Landge <[email protected]>
1 parent c3ce5bd commit ad0a478

File tree

2 files changed

+9
-1
lines changed

2 files changed

+9
-1
lines changed

boards/native/nrf_bsim/common/cmsis/cmsis_instr.h

+8
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,14 @@ void __WFE(void);
4040
void __WFI(void);
4141
void __SEV(void);
4242

43+
#define __NVIC_EnableIRQ(x)
44+
#define __NVIC_DisableIRQ(x)
45+
#define __NVIC_ClearPendingIRQ(x)
46+
#define __NVIC_SetPendingIRQ(x)
47+
#define __NVIC_SetPriority(x, y)
48+
#define __NVIC_GetPriority(x) (0)
49+
#define __NVIC_SystemReset()
50+
4351
/*
4452
* Implement the following ARM intrinsics as non-exclusive accesses
4553
*

west.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -200,7 +200,7 @@ manifest:
200200
groups:
201201
- hal
202202
- name: hal_nordic
203-
revision: 119ff5b5ec7a413ca2f64ae1928c79eee1e7b7b2
203+
revision: pull/290/head
204204
path: modules/hal/nordic
205205
groups:
206206
- hal

0 commit comments

Comments
 (0)