Skip to content

Commit 8bc6813

Browse files
committed
Update NimBLE core version to esp-nimble 1.4.0 @3c2e1d4
1 parent 5a8f786 commit 8bc6813

File tree

2 files changed

+6
-9
lines changed

2 files changed

+6
-9
lines changed

src/nimble/porting/npl/freertos/include/nimble/nimble_npl_os.h

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -70,9 +70,6 @@ struct ble_npl_event;
7070
typedef void ble_npl_event_fn(struct ble_npl_event *ev);
7171

7272
struct ble_npl_event {
73-
#if CONFIG_BT_NIMBLE_USE_ESP_TIMER
74-
ble_npl_event_fn *fn;
75-
#endif
7673
void *event;
7774
};
7875

src/nimble/porting/npl/freertos/src/npl_os_freertos.c

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -771,10 +771,9 @@ IRAM_ATTR npl_freertos_callout_init(struct ble_npl_callout *co, struct ble_npl_e
771771
PLATFORM_BLE_LL_ASSERT(callout);
772772

773773
memset(callout, 0, sizeof(*callout));
774+
ble_npl_event_init(&callout->ev, ev_cb, ev_arg);
774775

775776
#if CONFIG_BT_NIMBLE_USE_ESP_TIMER
776-
callout->ev.fn = ev_cb;
777-
callout->ev.event = ev_arg;
778777
callout->evq = evq;
779778

780779
esp_timer_create_args_t create_args = {
@@ -793,6 +792,8 @@ IRAM_ATTR npl_freertos_callout_init(struct ble_npl_callout *co, struct ble_npl_e
793792
} else {
794793
callout = (struct ble_npl_callout_freertos *)co->co;
795794
PLATFORM_BLE_LL_ASSERT(callout);
795+
callout->evq = evq;
796+
ble_npl_event_init(&callout->ev, ev_cb, ev_arg);
796797
}
797798
#else
798799

@@ -802,10 +803,9 @@ IRAM_ATTR npl_freertos_callout_init(struct ble_npl_callout *co, struct ble_npl_e
802803
PLATFORM_BLE_LL_ASSERT(callout);
803804

804805
memset(callout, 0, sizeof(*callout));
806+
ble_npl_event_init(&callout->ev, ev_cb, ev_arg);
805807

806808
#if CONFIG_BT_NIMBLE_USE_ESP_TIMER
807-
callout->ev.fn = ev_cb;
808-
callout->ev.event = ev_arg;
809809
callout->evq = evq;
810810

811811
esp_timer_create_args_t create_args = {
@@ -824,11 +824,11 @@ IRAM_ATTR npl_freertos_callout_init(struct ble_npl_callout *co, struct ble_npl_e
824824
else {
825825
callout = (struct ble_npl_callout_freertos *)co->co;
826826
PLATFORM_BLE_LL_ASSERT(callout);
827+
callout->evq = evq;
828+
ble_npl_event_init(&callout->ev, ev_cb, ev_arg);
827829
}
828830
#endif
829831

830-
callout->evq = evq;
831-
ble_npl_event_init(&callout->ev, ev_cb, ev_arg);
832832
}
833833

834834
void

0 commit comments

Comments
 (0)