NimBLE-Arduino 2.1.3
Loading...
Searching...
No Matches
nimble_port_freertos.h
1/*
2 * Licensed to the Apache Software Foundation (ASF) under one
3 * or more contributor license agreements. See the NOTICE file
4 * distributed with this work for additional information
5 * regarding copyright ownership. The ASF licenses this file
6 * to you under the Apache License, Version 2.0 (the
7 * "License"); you may not use this file except in compliance
8 * with the License. You may obtain a copy of the License at
9 *
10 * http://www.apache.org/licenses/LICENSE-2.0
11 *
12 * Unless required by applicable law or agreed to in writing,
13 * software distributed under the License is distributed on an
14 * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
15 * KIND, either express or implied. See the License for the
16 * specific language governing permissions and limitations
17 * under the License.
18 */
19
20#ifndef _NIMBLE_PORT_FREERTOS_H
21#define _NIMBLE_PORT_FREERTOS_H
22
23#include "nimble/nimble/include/nimble/nimble_npl.h"
24#include "nimble/porting/nimble/include/syscfg/syscfg.h"
25#ifdef ESP_PLATFORM
26#include "esp_err.h"
27#endif
28
29#ifdef __cplusplus
30extern "C" {
31#endif
32
33#ifdef ESP_PLATFORM
40esp_err_t esp_nimble_enable(void *host_task);
41
47esp_err_t esp_nimble_disable(void);
48
49#endif // ESP_PLATFORM
50
51void nimble_port_freertos_init(TaskFunction_t host_task_fn);
52void nimble_port_freertos_deinit(void);
53UBaseType_t nimble_port_freertos_get_hs_hwm(void);
54
55#if CONFIG_NIMBLE_STACK_USE_MEM_POOLS
56void npl_freertos_funcs_init(void);
57void npl_freertos_funcs_deinit(void);
58int npl_freertos_mempool_init(void);
59struct npl_funcs_t * npl_freertos_funcs_get(void);
60#endif
61#ifndef ESP_PLATFORM
62UBaseType_t nimble_port_freertos_get_ll_hwm(void);
63#endif
64UBaseType_t nimble_port_freertos_get_hs_hwm(void);
65
66#ifdef __cplusplus
67}
68#endif
69
70#endif /* _NIMBLE_PORT_FREERTOS_H */