Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 75f48a5 commit 9729fc3Copy full SHA for 9729fc3
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