ra8-firmware 0.1.0
Bare-metal firmware for the Renesas RA8 family (RA8D2 / RA8P1)
Loading...
Searching...
No Matches
nimble_npl_threadx.h
Go to the documentation of this file.
1
44
45#pragma once
46
47#ifdef __cplusplus
48extern "C" {
49#endif
50
51#include <stdint.h>
52
53/*
54 * Upstream declares the entire NPL function surface and pulls the
55 * OS-specific structs in through ``nimble/nimble_npl_os.h``, which this
56 * port supplies (``port/nimble/inc/nimble/nimble_npl_os.h``). Including
57 * it here is what puts a prototype in front of every ``ble_npl_*``
58 * definition in ``nimble_npl_threadx.c``; the port used to restate the
59 * types by hand and restate none of the functions, so nothing checked
60 * those definitions against the contract they implement.
61 */
62#include "nimble/nimble_npl.h"
63
64/* =============================================================================
65 * NimBLE port API (matches porting/nimble/include/nimble/nimble_port.h)
66 * =============================================================================
67 */
68
87void nimble_port_init(void);
88
104void nimble_port_run(void);
105
117
118/* =============================================================================
119 * NPL constants
120 * =============================================================================
121 */
122
137
138#ifdef __cplusplus
139}
140#endif
struct ble_npl_eventq * nimble_port_get_dflt_eventq(void)
Return the host's default eventq pointer.
void nimble_port_run(void)
Pump the NimBLE host event loop forever.
void nimble_port_init(void)
Bring the NimBLE host port up.
ble_npl_threadx_limits_t
Sizing constants for the ThreadX-backed NPL.
@ k_ble_npl_threadx_wait_forever
Wait forever – maps onto TX_WAIT_FOREVER.
@ k_ble_npl_threadx_eventq_slot_bytes
Bytes of storage per eventq slot (one pointer on M85).
@ k_ble_npl_threadx_sem_max
Default sem max value – effectively unbounded for our use case.
@ k_ble_npl_threadx_eventq_depth
Default eventq depth (number of pointer slots).
Event queue mapped onto TX_QUEUE.