diff options
| author | malongwei <[email protected]> | 2021-09-01 19:58:23 +0800 |
|---|---|---|
| committer | malongwei <[email protected]> | 2021-09-01 19:58:23 +0800 |
| commit | 5fb6cb8b4159d8913e2b6dcd6d61f3a005204ddc (patch) | |
| tree | 0a9ef1497ee59375f73d7046033ec1befd4e19bb /components/drivers/src/ringblk_buf.c | |
| parent | 553b57e3a901519e1fec8e667fb594991d681503 (diff) | |
修复ringblk_buf在不使用动态内存时报错的问题
Diffstat (limited to 'components/drivers/src/ringblk_buf.c')
| -rw-r--r-- | components/drivers/src/ringblk_buf.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/components/drivers/src/ringblk_buf.c b/components/drivers/src/ringblk_buf.c index c6688b3d2b..b966da3d36 100644 --- a/components/drivers/src/ringblk_buf.c +++ b/components/drivers/src/ringblk_buf.c @@ -44,6 +44,8 @@ void rt_rbb_init(rt_rbb_t rbb, rt_uint8_t *buf, rt_size_t buf_size, rt_rbb_blk_t } RTM_EXPORT(rt_rbb_init); +#ifdef RT_USING_HEAP + /** * ring block buffer object create * @@ -102,6 +104,8 @@ void rt_rbb_destroy(rt_rbb_t rbb) } RTM_EXPORT(rt_rbb_destroy); +#endif + static rt_rbb_blk_t find_empty_blk_in_set(rt_rbb_t rbb) { rt_size_t i; |
