diff options
| author | Yuqiang Wang <[email protected]> | 2024-02-21 11:45:04 +0800 |
|---|---|---|
| committer | GitHub <[email protected]> | 2024-02-20 22:45:04 -0500 |
| commit | c6bdee3c503a287a0967fd0e3cb6b7a1eb6d0b5e (patch) | |
| tree | 884d88b13750c2a0aa50d7cd7da495730f511605 /include/rtthread.h | |
| parent | 52a5b5cc48d9ca784f1728f97e2b8b9abc82aa0e (diff) | |
[ci] open ci check with function declaration warning (#8546)
Diffstat (limited to 'include/rtthread.h')
| -rw-r--r-- | include/rtthread.h | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/include/rtthread.h b/include/rtthread.h index 883a96fb5b..07fcb64e08 100644 --- a/include/rtthread.h +++ b/include/rtthread.h @@ -42,6 +42,10 @@ extern "C" { #endif +#ifdef __GNUC__ +int entry(void); +#endif + /** * @addtogroup KernelObject * @{ @@ -207,6 +211,7 @@ void rt_system_scheduler_init(void); void rt_system_scheduler_start(void); void rt_schedule(void); +void rt_scheduler_do_irq_switch(void *context); void rt_schedule_insert_thread(struct rt_thread *thread); void rt_schedule_remove_thread(struct rt_thread *thread); @@ -334,6 +339,15 @@ void rt_memheap_info(struct rt_memheap *heap, rt_size_t *max_used); #endif /* RT_USING_MEMHEAP */ +#ifdef RT_USING_MEMHEAP_AS_HEAP +/** + * memory heap as heap + */ +void *_memheap_alloc(struct rt_memheap *heap, rt_size_t size); +void _memheap_free(void *rmem); +void *_memheap_realloc(struct rt_memheap *heap, void *rmem, rt_size_t newsize); +#endif + #ifdef RT_USING_SLAB /** * slab object interface @@ -664,6 +678,8 @@ void rt_cpus_unlock(rt_base_t level); struct rt_cpu *rt_cpu_self(void); struct rt_cpu *rt_cpu_index(int index); +void rt_cpus_lock_status_restore(struct rt_thread *thread); + #endif /* RT_USING_SMP */ /* |
