docs: fixed API linking
Change-Id: If9daa0e11c967ee19684dd9d08438f749abf9d5e
This commit is contained in:
parent
4090f0e5a7
commit
3320df7949
11 changed files with 56 additions and 24 deletions
|
@ -50,6 +50,13 @@ Memory Maps
|
||||||
:project: Zephyr
|
:project: Zephyr
|
||||||
:content-only:
|
:content-only:
|
||||||
|
|
||||||
|
Memory Pools
|
||||||
|
************
|
||||||
|
|
||||||
|
.. doxygengroup:: microkernel_memorypool
|
||||||
|
:project: Zephyr
|
||||||
|
:content-only:
|
||||||
|
|
||||||
Mutexes
|
Mutexes
|
||||||
*******
|
*******
|
||||||
|
|
||||||
|
|
|
@ -15,6 +15,13 @@ Fibers
|
||||||
:project: Zephyr
|
:project: Zephyr
|
||||||
:content-only:
|
:content-only:
|
||||||
|
|
||||||
|
Tasks
|
||||||
|
******
|
||||||
|
|
||||||
|
.. doxygengroup:: nanokernel_task
|
||||||
|
:project: Zephyr
|
||||||
|
:content-only:
|
||||||
|
|
||||||
Semaphores
|
Semaphores
|
||||||
**********
|
**********
|
||||||
|
|
||||||
|
@ -36,6 +43,13 @@ FIFOs
|
||||||
:project: Zephyr
|
:project: Zephyr
|
||||||
:content-only:
|
:content-only:
|
||||||
|
|
||||||
|
Ring Buffers
|
||||||
|
************
|
||||||
|
|
||||||
|
.. doxygengroup:: nanokernel_ringbuffer
|
||||||
|
:project: Zephyr
|
||||||
|
:content-only:
|
||||||
|
|
||||||
Stacks
|
Stacks
|
||||||
******
|
******
|
||||||
|
|
||||||
|
|
|
@ -219,7 +219,7 @@ The following Event APIs are provided by :file:`microkernel.h`:
|
||||||
:cpp:func:`task_event_send()`
|
:cpp:func:`task_event_send()`
|
||||||
Signal an event from a task.
|
Signal an event from a task.
|
||||||
|
|
||||||
:c:func:`task_event_recv()`
|
:cpp:func:`task_event_recv()`
|
||||||
Waits for an event signal for a specified time period.
|
Waits for an event signal for a specified time period.
|
||||||
|
|
||||||
:cpp:func:`task_event_handler_set()`
|
:cpp:func:`task_event_handler_set()`
|
||||||
|
|
|
@ -167,7 +167,7 @@ APIs
|
||||||
|
|
||||||
The following Memory Map APIs are provided by :file:`microkernel.h`:
|
The following Memory Map APIs are provided by :file:`microkernel.h`:
|
||||||
|
|
||||||
:c:func:`task_mem_map_alloc()`
|
:cpp:func:`task_mem_map_alloc()`
|
||||||
Waits on a block of memory for the period of time defined by the time-out
|
Waits on a block of memory for the period of time defined by the time-out
|
||||||
parameter.
|
parameter.
|
||||||
|
|
||||||
|
|
|
@ -193,12 +193,12 @@ APIs
|
||||||
|
|
||||||
The following Memory Pools APIs are provided by :file:`microkernel.h`:
|
The following Memory Pools APIs are provided by :file:`microkernel.h`:
|
||||||
|
|
||||||
:c:func:`task_mem_pool_alloc()`
|
:cpp:func:`task_mem_pool_alloc()`
|
||||||
Waits for a block of memory for the time period defined by the time-out
|
Waits for a block of memory for the time period defined by the time-out
|
||||||
parameter.
|
parameter.
|
||||||
|
|
||||||
:c:func:`task_mem_pool_free()`
|
:cpp:func:`task_mem_pool_free()`
|
||||||
Returns a block of memory to a memory pool.
|
Returns a block of memory to a memory pool.
|
||||||
|
|
||||||
:c:func:`task_mem_pool_defragment()`
|
:cpp:func:`task_mem_pool_defragment()`
|
||||||
Defragments a memory pool.
|
Defragments a memory pool.
|
||||||
|
|
|
@ -181,7 +181,7 @@ APIs
|
||||||
|
|
||||||
The following Mutex APIs are provided by :file:`microkernel.h`:
|
The following Mutex APIs are provided by :file:`microkernel.h`:
|
||||||
|
|
||||||
:c:func:`task_mutex_lock()`
|
:cpp:func:`task_mutex_lock()`
|
||||||
Waits on a locked mutex for the period of time defined by the timeout
|
Waits on a locked mutex for the period of time defined by the timeout
|
||||||
parameter. If the mutex becomes available during that period, the function
|
parameter. If the mutex becomes available during that period, the function
|
||||||
locks the mutex, and increments the lock count.
|
locks the mutex, and increments the lock count.
|
||||||
|
|
|
@ -206,7 +206,7 @@ The following APIs for an individual semaphore are provided by
|
||||||
:cpp:func:`task_sem_give()`
|
:cpp:func:`task_sem_give()`
|
||||||
Gives a semaphore.
|
Gives a semaphore.
|
||||||
|
|
||||||
:c:func:`task_sem_take()`
|
:cpp:func:`task_sem_take()`
|
||||||
Takes a semaphore, with time limited waiting.
|
Takes a semaphore, with time limited waiting.
|
||||||
|
|
||||||
:cpp:func:`task_sem_reset()`
|
:cpp:func:`task_sem_reset()`
|
||||||
|
|
|
@ -290,16 +290,16 @@ by :file:`microkernel.h` and by :file:`nanokernel.h`:
|
||||||
The following APIs affecting a specified fiber are provided
|
The following APIs affecting a specified fiber are provided
|
||||||
by :file:`microkernel.h` and by :file:`nanokernel.h`:
|
by :file:`microkernel.h` and by :file:`nanokernel.h`:
|
||||||
|
|
||||||
:c:func:`task_fiber_start()`, :cpp:func:`fiber_fiber_start()`,
|
:cpp:func:`task_fiber_start()`, :cpp:func:`fiber_fiber_start()`,
|
||||||
:cpp:func:`fiber_start()`
|
:cpp:func:`fiber_start()`
|
||||||
Spawn a new fiber.
|
Spawn a new fiber.
|
||||||
|
|
||||||
:c:func:`task_fiber_delayed_start()`,
|
:cpp:func:`task_fiber_delayed_start()`,
|
||||||
:cpp:func:`fiber_fiber_delayed_start()`,
|
:cpp:func:`fiber_fiber_delayed_start()`,
|
||||||
:cpp:func:`fiber_delayed_start()`
|
:cpp:func:`fiber_delayed_start()`
|
||||||
Spawn a new fiber after a specified time period.
|
Spawn a new fiber after a specified time period.
|
||||||
|
|
||||||
:c:func:`task_fiber_delayed_start_cancel()`,
|
:cpp:func:`task_fiber_delayed_start_cancel()`,
|
||||||
:cpp:func:`fiber_fiber_delayed_start_cancel()`,
|
:cpp:func:`fiber_fiber_delayed_start_cancel()`,
|
||||||
:cpp:func:`fiber_delayed_start_cancel()`
|
:cpp:func:`fiber_delayed_start_cancel()`
|
||||||
Cancel spawning of a new fiber, if not already started.
|
Cancel spawning of a new fiber, if not already started.
|
||||||
|
|
|
@ -54,7 +54,7 @@ Adding a Kernel Event Logging Point
|
||||||
|
|
||||||
Custom trace points can be added with the following API:
|
Custom trace points can be added with the following API:
|
||||||
|
|
||||||
* :cpp:func:`sys_k_event_logger_put()`
|
* :c:func:`sys_k_event_logger_put()`
|
||||||
|
|
||||||
Adds the profile of a new event with custom data.
|
Adds the profile of a new event with custom data.
|
||||||
|
|
||||||
|
@ -76,9 +76,9 @@ event logger.
|
||||||
|
|
||||||
The API functions provided are:
|
The API functions provided are:
|
||||||
|
|
||||||
* :cpp:func:`sys_k_event_logger_get()`
|
* :c:func:`sys_k_event_logger_get()`
|
||||||
* :cpp:func:`sys_k_event_logger_get_wait()`
|
* :c:func:`sys_k_event_logger_get_wait()`
|
||||||
* :cpp:func:`sys_k_event_logger_get_wait_timeout()`
|
* :c:func:`sys_k_event_logger_get_wait_timeout()`
|
||||||
|
|
||||||
The above functions specify various ways to retrieve a event message and to copy it to
|
The above functions specify various ways to retrieve a event message and to copy it to
|
||||||
the provided buffer. When the buffer size is smaller than the message, the function will
|
the provided buffer. When the buffer size is smaller than the message, the function will
|
||||||
|
@ -295,17 +295,17 @@ The following APIs are provided by the :file:`k_event_logger.h` file:
|
||||||
:cpp:func:`sys_k_event_logger_register_as_collector()`
|
:cpp:func:`sys_k_event_logger_register_as_collector()`
|
||||||
Register the current fiber as the collector fiber.
|
Register the current fiber as the collector fiber.
|
||||||
|
|
||||||
:cpp:func:`sys_k_event_logger_put()`
|
:c:func:`sys_k_event_logger_put()`
|
||||||
Enqueue a kernel event logger message with custom data.
|
Enqueue a kernel event logger message with custom data.
|
||||||
|
|
||||||
:cpp:func:`sys_k_event_logger_put_timed()`
|
:cpp:func:`sys_k_event_logger_put_timed()`
|
||||||
Enqueue a kernel event logger message with the current time.
|
Enqueue a kernel event logger message with the current time.
|
||||||
|
|
||||||
:cpp:func:`sys_k_event_logger_get()`
|
:c:func:`sys_k_event_logger_get()`
|
||||||
De-queue a kernel event logger message.
|
De-queue a kernel event logger message.
|
||||||
|
|
||||||
:cpp:func:`sys_k_event_logger_get_wait()`
|
:c:func:`sys_k_event_logger_get_wait()`
|
||||||
De-queue a kernel event logger message. Wait if the buffer is empty.
|
De-queue a kernel event logger message. Wait if the buffer is empty.
|
||||||
|
|
||||||
:cpp:func:`sys_k_event_logger_get_wait_timeout()`
|
:c:func:`sys_k_event_logger_get_wait_timeout()`
|
||||||
De-queue a kernel event logger message. Wait if the buffer is empty until the timeout expires.
|
De-queue a kernel event logger message. Wait if the buffer is empty until the timeout expires.
|
||||||
|
|
|
@ -124,20 +124,20 @@ APIs
|
||||||
|
|
||||||
The following APIs for ring buffers are provided by :file:`ring_buffer.h`:
|
The following APIs for ring buffers are provided by :file:`ring_buffer.h`:
|
||||||
|
|
||||||
:c:func:`sys_ring_buf_init()`
|
:cpp:func:`sys_ring_buf_init()`
|
||||||
Initializes a ring buffer.
|
Initializes a ring buffer.
|
||||||
|
|
||||||
:c:func:`SYS_RING_BUF_DECLARE_POW2()`, :c:func:`SYS_RING_BUF_DECLARE_SIZE()`
|
:c:func:`SYS_RING_BUF_DECLARE_POW2()`, :c:func:`SYS_RING_BUF_DECLARE_SIZE()`
|
||||||
Declare and init a file-scope ring buffer.
|
Declare and init a file-scope ring buffer.
|
||||||
|
|
||||||
:c:func:`sys_ring_buf_get_space()`
|
:cpp:func:`sys_ring_buf_space_get()`
|
||||||
Returns the amount of free buffer storage space in 32-bit dwords.
|
Returns the amount of free buffer storage space in 32-bit dwords.
|
||||||
|
|
||||||
:c:func:`sys_ring_buf_is_empty()`
|
:cpp:func:`sys_ring_buf_is_empty()`
|
||||||
Indicates whether a buffer is empty.
|
Indicates whether a buffer is empty.
|
||||||
|
|
||||||
:c:func:`sys_ring_buf_put()`
|
:cpp:func:`sys_ring_buf_put()`
|
||||||
Enqueues an item.
|
Enqueues an item.
|
||||||
|
|
||||||
:c:func:`sys_ring_buf_get()`
|
:cpp:func:`sys_ring_buf_get()`
|
||||||
De-queues an item.
|
De-queues an item.
|
||||||
|
|
|
@ -28,6 +28,13 @@
|
||||||
extern "C" {
|
extern "C" {
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @brief Ring Buffer APIs
|
||||||
|
* @defgroup nanokernel_ringbuffer Ring Bufer
|
||||||
|
* @ingroup nanokernel_services
|
||||||
|
* @{
|
||||||
|
*/
|
||||||
|
|
||||||
#define SIZE32_OF(x) (sizeof((x))/sizeof(uint32_t))
|
#define SIZE32_OF(x) (sizeof((x))/sizeof(uint32_t))
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -169,6 +176,10 @@ int sys_ring_buf_put(struct ring_buf *buf, uint16_t type, uint8_t value,
|
||||||
int sys_ring_buf_get(struct ring_buf *buf, uint16_t *type, uint8_t *value,
|
int sys_ring_buf_get(struct ring_buf *buf, uint16_t *type, uint8_t *value,
|
||||||
uint32_t *data, uint8_t *size32);
|
uint32_t *data, uint8_t *size32);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @}
|
||||||
|
*/
|
||||||
|
|
||||||
#ifdef __cplusplus
|
#ifdef __cplusplus
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue