From 2078b042a4e7f9fb02359e61d78fd33553a37c98 Mon Sep 17 00:00:00 2001 From: Ayke van Laethem Date: Fri, 20 Mar 2020 15:06:51 +0100 Subject: [PATCH] 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. --- targets/nrf51.json | 3 ++- targets/nrf52840.json | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/targets/nrf51.json b/targets/nrf51.json index 60c0d5dc..9959c6f7 100644 --- a/targets/nrf51.json +++ b/targets/nrf51.json @@ -6,7 +6,8 @@ "--target=armv6m-none-eabi", "-Qunused-arguments", "-DNRF51", - "-I{root}/lib/CMSIS/CMSIS/Include" + "-I{root}/lib/CMSIS/CMSIS/Include", + "-I{root}/lib/nrfx/mdk" ], "linkerscript": "targets/nrf51.ld", "extra-files": [ diff --git a/targets/nrf52840.json b/targets/nrf52840.json index 7afb2474..2c2eff7c 100644 --- a/targets/nrf52840.json +++ b/targets/nrf52840.json @@ -7,7 +7,8 @@ "-mfloat-abi=soft", "-Qunused-arguments", "-DNRF52840_XXAA", - "-I{root}/lib/CMSIS/CMSIS/Include" + "-I{root}/lib/CMSIS/CMSIS/Include", + "-I{root}/lib/nrfx/mdk" ], "linkerscript": "targets/nrf52840.ld", "extra-files": [