add nimble mesh example

need meshctl installed on raspberrypi. nimble offical samples have a lot of pit ...
This commit is contained in:
daishengdong
2019-11-28 11:12:16 +08:00
parent b2afa0c172
commit b2983383bb
192 changed files with 41667 additions and 279927 deletions

View File

@@ -225,6 +225,19 @@ os_callout_timer_cb(void *arg)
}
}
ble_npl_error_t
npl_tencentos_tiny_task_init(struct ble_npl_task *task, char *name, ble_npl_task_entry_t entry,
void *arg, uint8_t prio, ble_npl_time_t sanity_itvl,
ble_npl_stack_t *stack_bottom, uint16_t stack_size)
{
k_err_t err;
err = tos_task_create(&task->handle, name, entry, arg, prio, stack_bottom, stack_size, 0);
assert(err == K_ERR_NONE);
return BLE_NPL_OK;
}
void
npl_tencentos_tiny_callout_init(struct ble_npl_callout *co, struct ble_npl_eventq *evq,
ble_npl_event_fn *ev_cb, void *ev_arg)