diff options
| author | Jackistang <[email protected]> | 2021-08-18 22:51:00 +0800 |
|---|---|---|
| committer | Jackistang <[email protected]> | 2021-08-18 22:51:00 +0800 |
| commit | 4c6b4028e35814775fbeadb4fcc2d0a5b00a19b7 (patch) | |
| tree | 457df5f2b4f442aa7e7f690196bd2b1828fac0aa | |
| parent | 3de03a072e3145522546b46117e51e9e444e1b4e (diff) | |
Update the comments for ringbuffer and workqueue.
| -rw-r--r-- | components/drivers/src/ringbuffer.c | 4 | ||||
| -rw-r--r-- | components/drivers/src/workqueue.c | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/components/drivers/src/ringbuffer.c b/components/drivers/src/ringbuffer.c index a8233a7555..31eab4816c 100644 --- a/components/drivers/src/ringbuffer.c +++ b/components/drivers/src/ringbuffer.c @@ -29,7 +29,7 @@ rt_inline enum rt_ringbuffer_state rt_ringbuffer_status(struct rt_ringbuffer *rb } /** - * @brief Initialize the ring buffer object with the given buffer. + * @brief Initialize the ring buffer object. * * @param rb A pointer to the ring buffer object. * @param pool A pointer to the buffer. @@ -415,7 +415,7 @@ RTM_EXPORT(rt_ringbuffer_reset); * * @param size The size of the buffer in bytes. * - * @return Return a pointer to ring buffer object. When the return value is RT_NULL, it means the creation failed. + * @return Return a pointer to ring buffer object. When the return value is RT_NULL, it means this creation failed. */ struct rt_ringbuffer *rt_ringbuffer_create(rt_uint16_t size) { diff --git a/components/drivers/src/workqueue.c b/components/drivers/src/workqueue.c index 4a776ca485..b5d803472b 100644 --- a/components/drivers/src/workqueue.c +++ b/components/drivers/src/workqueue.c @@ -302,7 +302,7 @@ rt_err_t rt_workqueue_submit_work(struct rt_workqueue *queue, struct rt_work *wo } /** - * @brief Submit a work item to the work queue without delay. This work item will be executed after the current work item is executed. + * @brief Submit a work item to the work queue without delay. This work item will be executed after the current work item. * * @param queue A pointer to the workqueue object. * @param work A pointer to the work item object. |
