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 677558fad Enable by default some NRFX API for NRF52
677558fad is described below
commit 677558fadcc5a106e7f08b9c169c71c3214532ac
Author: Jakub <[email protected]>
AuthorDate: Fri May 19 08:57:36 2023 +0200
Enable by default some NRFX API for NRF52
- GPIOTE
- PPI
- TIMER 2, 3
Tested if builds:
- pca10056
- pca10040
---
hw/mcu/nordic/nrf52xxx/include/nrfx52810_config.h | 18 +++++++++++++++---
hw/mcu/nordic/nrf52xxx/include/nrfx52811_config.h | 18 +++++++++++++++---
hw/mcu/nordic/nrf52xxx/include/nrfx52840_config.h | 18 +++++++++++++++---
hw/mcu/nordic/nrf52xxx/include/nrfx52_config.h | 18 +++++++++++++++---
4 files changed, 60 insertions(+), 12 deletions(-)
diff --git a/hw/mcu/nordic/nrf52xxx/include/nrfx52810_config.h
b/hw/mcu/nordic/nrf52xxx/include/nrfx52810_config.h
index 349e5a256..6ef2189be 100644
--- a/hw/mcu/nordic/nrf52xxx/include/nrfx52810_config.h
+++ b/hw/mcu/nordic/nrf52xxx/include/nrfx52810_config.h
@@ -31,7 +31,11 @@
#endif
#ifndef NRFX_GPIOTE_ENABLED
-#define NRFX_GPIOTE_ENABLED 0
+#define NRFX_GPIOTE_ENABLED 1
+#endif
+
+#ifndef NRFX_GPIOTE_CONFIG_NUM_OF_LOW_POWER_EVENTS
+#define NRFX_GPIOTE_CONFIG_NUM_OF_LOW_POWER_EVENTS 1
#endif
#ifndef NRFX_I2S_ENABLED
@@ -51,7 +55,7 @@
#endif
#ifndef NRFX_PPI_ENABLED
-#define NRFX_PPI_ENABLED 0
+#define NRFX_PPI_ENABLED 1
#endif
#ifndef NRFX_PRS_ENABLED
@@ -91,7 +95,15 @@
#endif
#ifndef NRFX_TIMER_ENABLED
-#define NRFX_TIMER_ENABLED 0
+#define NRFX_TIMER_ENABLED 1
+#endif
+
+#ifndef NRFX_TIMER2_ENABLED
+#define NRFX_TIMER2_ENABLED 1
+#endif
+
+#ifndef NRFX_TIMER3_ENABLED
+#define NRFX_TIMER3_ENABLED 1
#endif
#ifndef NRFX_TWIM_ENABLED
diff --git a/hw/mcu/nordic/nrf52xxx/include/nrfx52811_config.h
b/hw/mcu/nordic/nrf52xxx/include/nrfx52811_config.h
index 08c736b12..368d3d79f 100644
--- a/hw/mcu/nordic/nrf52xxx/include/nrfx52811_config.h
+++ b/hw/mcu/nordic/nrf52xxx/include/nrfx52811_config.h
@@ -31,7 +31,11 @@
#endif
#ifndef NRFX_GPIOTE_ENABLED
-#define NRFX_GPIOTE_ENABLED 0
+#define NRFX_GPIOTE_ENABLED 1
+#endif
+
+#ifndef NRFX_GPIOTE_CONFIG_NUM_OF_LOW_POWER_EVENTS
+#define NRFX_GPIOTE_CONFIG_NUM_OF_LOW_POWER_EVENTS 1
#endif
#ifndef NRFX_I2S_ENABLED
@@ -51,7 +55,7 @@
#endif
#ifndef NRFX_PPI_ENABLED
-#define NRFX_PPI_ENABLED 0
+#define NRFX_PPI_ENABLED 1
#endif
#ifndef NRFX_PRS_ENABLED
@@ -91,7 +95,15 @@
#endif
#ifndef NRFX_TIMER_ENABLED
-#define NRFX_TIMER_ENABLED 0
+#define NRFX_TIMER_ENABLED 1
+#endif
+
+#ifndef NRFX_TIMER2_ENABLED
+#define NRFX_TIMER2_ENABLED 1
+#endif
+
+#ifndef NRFX_TIMER3_ENABLED
+#define NRFX_TIMER3_ENABLED 1
#endif
#ifndef NRFX_TWIM_ENABLED
diff --git a/hw/mcu/nordic/nrf52xxx/include/nrfx52840_config.h
b/hw/mcu/nordic/nrf52xxx/include/nrfx52840_config.h
index 171c0e7be..ff1a33240 100644
--- a/hw/mcu/nordic/nrf52xxx/include/nrfx52840_config.h
+++ b/hw/mcu/nordic/nrf52xxx/include/nrfx52840_config.h
@@ -31,7 +31,11 @@
#endif
#ifndef NRFX_GPIOTE_ENABLED
-#define NRFX_GPIOTE_ENABLED 0
+#define NRFX_GPIOTE_ENABLED 1
+#endif
+
+#ifndef NRFX_GPIOTE_CONFIG_NUM_OF_LOW_POWER_EVENTS
+#define NRFX_GPIOTE_CONFIG_NUM_OF_LOW_POWER_EVENTS 1
#endif
#ifndef NRFX_I2S_ENABLED
@@ -51,7 +55,7 @@
#endif
#ifndef NRFX_PPI_ENABLED
-#define NRFX_PPI_ENABLED 0
+#define NRFX_PPI_ENABLED 1
#endif
#ifndef NRFX_PRS_ENABLDE
@@ -91,7 +95,15 @@
#endif
#ifndef NRFX_TIMER_ENABLED
-#define NRFX_TIMER_ENABLED 0
+#define NRFX_TIMER_ENABLED 1
+#endif
+
+#ifndef NRFX_TIMER2_ENABLED
+#define NRFX_TIMER2_ENABLED 1
+#endif
+
+#ifndef NRFX_TIMER3_ENABLED
+#define NRFX_TIMER3_ENABLED 1
#endif
#ifndef NRFX_TWIM_ENABLED
diff --git a/hw/mcu/nordic/nrf52xxx/include/nrfx52_config.h
b/hw/mcu/nordic/nrf52xxx/include/nrfx52_config.h
index d6700fcb5..532788e07 100644
--- a/hw/mcu/nordic/nrf52xxx/include/nrfx52_config.h
+++ b/hw/mcu/nordic/nrf52xxx/include/nrfx52_config.h
@@ -31,7 +31,11 @@
#endif
#ifndef NRFX_GPIOTE_ENABLED
-#define NRFX_GPIOTE_ENABLED 0
+#define NRFX_GPIOTE_ENABLED 1
+#endif
+
+#ifndef NRFX_GPIOTE_CONFIG_NUM_OF_LOW_POWER_EVENTS
+#define NRFX_GPIOTE_CONFIG_NUM_OF_LOW_POWER_EVENTS 1
#endif
#ifndef NRFX_I2S_ENABLED
@@ -51,7 +55,7 @@
#endif
#ifndef NRFX_PPI_ENABLED
-#define NRFX_PPI_ENABLED 0
+#define NRFX_PPI_ENABLED 1
#endif
#ifndef NRFX_PRS_ENABLED
@@ -91,7 +95,15 @@
#endif
#ifndef NRFX_TIMER_ENABLED
-#define NRFX_TIMER_ENABLED 0
+#define NRFX_TIMER_ENABLED 1
+#endif
+
+#ifndef NRFX_TIMER2_ENABLED
+#define NRFX_TIMER2_ENABLED 1
+#endif
+
+#ifndef NRFX_TIMER3_ENABLED
+#define NRFX_TIMER3_ENABLED 1
#endif
#ifndef NRFX_TWIM_ENABLED