Skip to content

Commit 2078b04

Browse files
aykevldeadprogram
authored andcommitted
nrf: add lib/nrfx/mdk to include dirs
This directory is needed for nrf.h and other headers that are used by the SoftDevice. It is definitely needed for nrf52840 for example, but I've also added it to the nrf51 as it will likely also require adding this directory.
1 parent 9e453a5 commit 2078b04

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

targets/nrf51.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,8 @@
66
"--target=armv6m-none-eabi",
77
"-Qunused-arguments",
88
"-DNRF51",
9-
"-I{root}/lib/CMSIS/CMSIS/Include"
9+
"-I{root}/lib/CMSIS/CMSIS/Include",
10+
"-I{root}/lib/nrfx/mdk"
1011
],
1112
"linkerscript": "targets/nrf51.ld",
1213
"extra-files": [

targets/nrf52840.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,8 @@
77
"-mfloat-abi=soft",
88
"-Qunused-arguments",
99
"-DNRF52840_XXAA",
10-
"-I{root}/lib/CMSIS/CMSIS/Include"
10+
"-I{root}/lib/CMSIS/CMSIS/Include",
11+
"-I{root}/lib/nrfx/mdk"
1112
],
1213
"linkerscript": "targets/nrf52840.ld",
1314
"extra-files": [

0 commit comments

Comments
 (0)