You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@mynewt.apache.org by je...@apache.org on 2020/12/15 07:28:00 UTC

[mynewt-core] branch master updated: hw/ipc_nrf5340: Fix build for network core

This is an automated email from the ASF dual-hosted git repository.

jerzy pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/mynewt-core.git


The following commit(s) were added to refs/heads/master by this push:
     new 80f4f09  hw/ipc_nrf5340: Fix build for network core
80f4f09 is described below

commit 80f4f097c1c861c9d0f0f6990ba486fbc85d1048
Author: Jerzy Kasenberg <je...@codecoup.pl>
AuthorDate: Mon Dec 7 14:28:38 2020 +0100

    hw/ipc_nrf5340: Fix build for network core
    
    File 'mcu/nrf5340_hal.h' is application core specific and is not
    used when file is build for network code.
    IPC_NRF5340_NET_GPIO is defined in application build only
    and is used to conditionally include offending file.
---
 hw/drivers/ipc_nrf5340/src/ipc_nrf5340.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/hw/drivers/ipc_nrf5340/src/ipc_nrf5340.c b/hw/drivers/ipc_nrf5340/src/ipc_nrf5340.c
index ec78250..2d56992 100644
--- a/hw/drivers/ipc_nrf5340/src/ipc_nrf5340.c
+++ b/hw/drivers/ipc_nrf5340/src/ipc_nrf5340.c
@@ -21,8 +21,10 @@
 #include <os/os.h>
 #include <ipc_nrf5340/ipc_nrf5340.h>
 #include <nrfx.h>
+#if MYNEWT_VAL(IPC_NRF5340_NET_GPIO)
 #include <mcu/nrf5340_hal.h>
 #include <bsp/bsp.h>
+#endif
 
 /* Currently this allows only for 1-1 connection. */