You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@mynewt.apache.org by vi...@apache.org on 2018/07/24 00:27:47 UTC

[mynewt-core] branch master updated: Make NRFX work with POF to setup an interrupt (#1291)

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

vipulrahane 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 6d47099  Make NRFX work with POF to setup an interrupt (#1291)
6d47099 is described below

commit 6d4709994c7247775435aef6785142d331455363
Author: Vipul Rahane <vr...@gmail.com>
AuthorDate: Mon Jul 23 17:27:45 2018 -0700

    Make NRFX work with POF to setup an interrupt (#1291)
---
 hw/mcu/nordic/pkg.yml                      | 1 -
 hw/mcu/nordic/src/ext/nrfx/hal/nrf_power.h | 4 ++++
 2 files changed, 4 insertions(+), 1 deletion(-)

diff --git a/hw/mcu/nordic/pkg.yml b/hw/mcu/nordic/pkg.yml
index 0e9fdc5..1d19f44 100644
--- a/hw/mcu/nordic/pkg.yml
+++ b/hw/mcu/nordic/pkg.yml
@@ -29,7 +29,6 @@ pkg.keywords:
 pkg.type: sdk
 
 pkg.ign_files.BSP_NRF52:
-    - "nrfx_power.c"
     - "nrfx_power_clock.c"
 
 pkg.ign_files.BSP_NRF52810:
diff --git a/hw/mcu/nordic/src/ext/nrfx/hal/nrf_power.h b/hw/mcu/nordic/src/ext/nrfx/hal/nrf_power.h
index 14fd9c1..7628f8d 100644
--- a/hw/mcu/nordic/src/ext/nrfx/hal/nrf_power.h
+++ b/hw/mcu/nordic/src/ext/nrfx/hal/nrf_power.h
@@ -38,6 +38,10 @@
 extern "C" {
 #endif
 
+#ifndef ARRAY_SIZE
+#define ARRAY_SIZE(x) (sizeof(x) / sizeof((x)[0]))
+#endif
+
 /**
  * @defgroup nrf_power_hal POWER HAL
  * @{