RT-Thread RTOS 1.2.0
An open source embedded real-time operating system
载入中...
搜索中...
未找到
cpu_up.c 文件参考
#include <rthw.h>
#include <rtthread.h>
+ cpu_up.c 的引用(Include)关系图:

浏览该文件的源代码.

函数

void rt_spin_lock_init (struct rt_spinlock *lock)
 
void rt_spin_lock (struct rt_spinlock *lock)
 
void rt_spin_unlock (struct rt_spinlock *lock)
 
rt_base_t rt_spin_lock_irqsave (struct rt_spinlock *lock)
 
void rt_spin_unlock_irqrestore (struct rt_spinlock *lock, rt_base_t level)
 
struct rt_cpurt_cpu_self (void)
 
struct rt_cpurt_cpu_index (int index)
 

函数说明

◆ rt_cpu_self()

struct rt_cpu * rt_cpu_self ( void )

This fucntion will return current cpu object.

返回
Return a pointer to the current cpu object.

在文件 cpu_up.c93 行定义.

94{
95 return &_cpu;
96}

◆ rt_cpu_index()

struct rt_cpu * rt_cpu_index ( int index)

This fucntion will return the cpu object corresponding to index.

参数
indexis the index of target cpu object.
返回
Return a pointer to the cpu object corresponding to index.

在文件 cpu_up.c105 行定义.

106{
107 return index == 0 ? &_cpu : RT_NULL;
108}
#define RT_NULL

引用了 RT_NULL.