docs: fixed API linking

Change-Id: If9daa0e11c967ee19684dd9d08438f749abf9d5e
This commit is contained in:
Anas Nashif 2016-02-14 14:24:37 -05:00 committed by Gerrit Code Review
commit 3320df7949
11 changed files with 56 additions and 24 deletions

View file

@ -50,6 +50,13 @@ Memory Maps
:project: Zephyr
:content-only:
Memory Pools
************
.. doxygengroup:: microkernel_memorypool
:project: Zephyr
:content-only:
Mutexes
*******

View file

@ -15,6 +15,13 @@ Fibers
:project: Zephyr
:content-only:
Tasks
******
.. doxygengroup:: nanokernel_task
:project: Zephyr
:content-only:
Semaphores
**********
@ -36,6 +43,13 @@ FIFOs
:project: Zephyr
:content-only:
Ring Buffers
************
.. doxygengroup:: nanokernel_ringbuffer
:project: Zephyr
:content-only:
Stacks
******

View file

@ -219,7 +219,7 @@ The following Event APIs are provided by :file:`microkernel.h`:
:cpp:func:`task_event_send()`
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.
:cpp:func:`task_event_handler_set()`

View file

@ -167,7 +167,7 @@ APIs
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
parameter.

View file

@ -193,12 +193,12 @@ APIs
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
parameter.
:c:func:`task_mem_pool_free()`
:cpp:func:`task_mem_pool_free()`
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.

View file

@ -181,7 +181,7 @@ APIs
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
parameter. If the mutex becomes available during that period, the function
locks the mutex, and increments the lock count.

View file

@ -206,7 +206,7 @@ The following APIs for an individual semaphore are provided by
:cpp:func:`task_sem_give()`
Gives a semaphore.
:c:func:`task_sem_take()`
:cpp:func:`task_sem_take()`
Takes a semaphore, with time limited waiting.
:cpp:func:`task_sem_reset()`

View file

@ -290,16 +290,16 @@ by :file:`microkernel.h` and by :file:`nanokernel.h`:
The following APIs affecting a specified fiber are provided
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()`
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_delayed_start()`
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_delayed_start_cancel()`
Cancel spawning of a new fiber, if not already started.
Cancel spawning of a new fiber, if not already started.

View file

@ -54,7 +54,7 @@ Adding a Kernel Event Logging Point
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.
@ -76,9 +76,9 @@ event logger.
The API functions provided are:
* :cpp:func:`sys_k_event_logger_get()`
* :cpp:func:`sys_k_event_logger_get_wait()`
* :cpp:func:`sys_k_event_logger_get_wait_timeout()`
* :c:func:`sys_k_event_logger_get()`
* :c:func:`sys_k_event_logger_get_wait()`
* :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 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()`
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.
:cpp:func:`sys_k_event_logger_put_timed()`
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.
: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.
: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.

View file

@ -124,20 +124,20 @@ APIs
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.
:c:func:`SYS_RING_BUF_DECLARE_POW2()`, :c:func:`SYS_RING_BUF_DECLARE_SIZE()`
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.
:c:func:`sys_ring_buf_is_empty()`
:cpp:func:`sys_ring_buf_is_empty()`
Indicates whether a buffer is empty.
:c:func:`sys_ring_buf_put()`
:cpp:func:`sys_ring_buf_put()`
Enqueues an item.
:c:func:`sys_ring_buf_get()`
:cpp:func:`sys_ring_buf_get()`
De-queues an item.

View file

@ -28,6 +28,13 @@
extern "C" {
#endif
/**
* @brief Ring Buffer APIs
* @defgroup nanokernel_ringbuffer Ring Bufer
* @ingroup nanokernel_services
* @{
*/
#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,
uint32_t *data, uint8_t *size32);
/**
* @}
*/
#ifdef __cplusplus
}
#endif