Skip to content

Commit 4be9cff

Browse files
lemreyeivindj-nordic
authored andcommitted
sdh: do not declare the event handlers in obsevers' macro
Do not declare the event handlers in the observers' macro. Let the user decide the linkage of the handlers. Signed-off-by: Emanuele Di Santo <emdi@nordicsemi.no>
1 parent 80d0983 commit 4be9cff

2 files changed

Lines changed: 1 addition & 3 deletions

File tree

doc/nrf-bm/release_notes/release_notes_changelog.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ No changes since the latest nRF Connect SDK Bare Metal release.
3232
SoftDevice Handler
3333
==================
3434

35-
No changes since the latest nRF Connect SDK Bare Metal release.
35+
* Updated the :c:macro:`NRF_SDH_STATE_EVT_OBSERVER` and :c:macro:`NRF_SDH_STACK_EVT_OBSERVER` macros to not declare the handler prototype.
3636

3737
Boards
3838
======

include/bm/softdevice_handler/nrf_sdh.h

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -149,7 +149,6 @@ struct nrf_sdh_state_evt_observer {
149149
*/
150150
#define NRF_SDH_STATE_EVT_OBSERVER(_observer, _handler, _ctx, _prio) \
151151
PRIO_LEVEL_IS_VALID(_prio); \
152-
static int _handler(enum nrf_sdh_state_evt, void *); \
153152
static TYPE_SECTION_ITERABLE(struct nrf_sdh_state_evt_observer, _observer, \
154153
nrf_sdh_state_evt_observers, PRIO_LEVEL_ORD(_prio)) = { \
155154
.handler = _handler, \
@@ -190,7 +189,6 @@ struct nrf_sdh_stack_evt_observer {
190189
*/
191190
#define NRF_SDH_STACK_EVT_OBSERVER(_observer, _handler, _ctx, _prio) \
192191
PRIO_LEVEL_IS_VALID(_prio); \
193-
static void _handler(void *); \
194192
static const TYPE_SECTION_ITERABLE(struct nrf_sdh_stack_evt_observer, _observer, \
195193
nrf_sdh_stack_evt_observers, PRIO_LEVEL_ORD(_prio)) = { \
196194
.handler = _handler, \

0 commit comments

Comments
 (0)