We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 75f48a5 + 9729fc3 commit 2f877bdCopy full SHA for 2f877bd
ports/nrf/drivers/bluetooth/ble_drv.c
@@ -30,12 +30,15 @@
30
#include <string.h>
31
#include <stdbool.h>
32
33
+#if (BLUETOOTH_SD == 132)
34
#define NRF52 // Needed for SD132 v2
35
+#endif
36
37
#include "py/runtime.h"
38
#include "ble_drv.h"
39
#include "mpconfigport.h"
40
#include "nrf_sdm.h"
41
+#include "nrfx_power.h"
42
#include "ble_gap.h"
43
#include "ble.h" // sd_ble_uuid_encode
44
@@ -142,6 +145,12 @@ uint32_t ble_drv_stack_enable(void) {
142
145
#endif
143
146
};
144
147
148
+
149
+#if (BLUETOOTH_SD == 140)
150
+ // The SD takes over the POWER IRQ and will fail if the IRQ is already in use
151
+ nrfx_power_uninit();
152
153
154
uint32_t err_code = sd_softdevice_enable(&clock_config,
155
softdevice_assert_handler);
156
0 commit comments