mirror of
https://github.com/espressif/esp-nimble.git
synced 2026-09-16 14:09:54 +00:00
porting: Change ble_npl_callout_reset return value
All other APIs return ble_npl_error_t already.
This commit is contained in:
@@ -134,7 +134,7 @@ ble_npl_callout_init(struct ble_npl_callout *c, struct ble_npl_eventq *evq,
|
||||
{
|
||||
}
|
||||
|
||||
int
|
||||
ble_npl_error_t
|
||||
ble_npl_callout_reset(struct ble_npl_callout *c, ble_npl_time_t ticks)
|
||||
{
|
||||
return BLE_NPL_ENOENT;
|
||||
|
||||
@@ -210,7 +210,7 @@ ble_npl_callout_init(struct ble_npl_callout *co, struct ble_npl_eventq *evq,
|
||||
npl_freertos_callout_init(co, evq, ev_cb, ev_arg);
|
||||
}
|
||||
|
||||
static inline int
|
||||
static inline ble_npl_error_t
|
||||
ble_npl_callout_reset(struct ble_npl_callout *co, ble_npl_time_t ticks)
|
||||
{
|
||||
return npl_freertos_callout_reset(co, ticks);
|
||||
|
||||
@@ -53,8 +53,8 @@ void npl_freertos_callout_init(struct ble_npl_callout *co,
|
||||
struct ble_npl_eventq *evq,
|
||||
ble_npl_event_fn *ev_cb, void *ev_arg);
|
||||
|
||||
int npl_freertos_callout_reset(struct ble_npl_callout *co,
|
||||
ble_npl_time_t ticks);
|
||||
ble_npl_error_t npl_freertos_callout_reset(struct ble_npl_callout *co,
|
||||
ble_npl_time_t ticks);
|
||||
|
||||
ble_npl_time_t npl_freertos_callout_remaining_ticks(struct ble_npl_callout *co,
|
||||
ble_npl_time_t now);
|
||||
|
||||
@@ -255,7 +255,7 @@ npl_freertos_callout_init(struct ble_npl_callout *co, struct ble_npl_eventq *evq
|
||||
ble_npl_event_init(&co->ev, ev_cb, ev_arg);
|
||||
}
|
||||
|
||||
int
|
||||
ble_npl_error_t
|
||||
npl_freertos_callout_reset(struct ble_npl_callout *co, ble_npl_time_t ticks)
|
||||
{
|
||||
BaseType_t woken1, woken2, woken3;
|
||||
|
||||
@@ -198,7 +198,7 @@ ble_npl_callout_init(struct ble_npl_callout *co, struct ble_npl_eventq *evq,
|
||||
os_callout_init(&co->co, &evq->evq, (os_event_fn *)ev_cb, ev_arg);
|
||||
}
|
||||
|
||||
static inline int
|
||||
static inline ble_npl_error_t
|
||||
ble_npl_callout_reset(struct ble_npl_callout *co, ble_npl_time_t ticks)
|
||||
{
|
||||
return os_callout_reset(&co->co, ticks);
|
||||
|
||||
Reference in New Issue
Block a user