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

浏览该文件的源代码.

结构体

struct  rt_irq_desc
 
struct  rt_hw_backtrace_frame
 

宏定义

#define HWREG64(x)
 
#define HWREG32(x)
 
#define HWREG16(x)
 
#define HWREG8(x)
 
#define RT_CPU_CACHE_LINE_SZ   32
 
#define rt_hw_cpu_icache_enable(...)
 
#define rt_hw_cpu_icache_disable(...)
 
#define rt_hw_cpu_icache_ops(...)
 
#define rt_hw_cpu_dcache_enable(...)
 
#define rt_hw_cpu_dcache_disable(...)
 
#define rt_hw_cpu_dcache_ops(...)
 
#define rt_hw_cpu_icache_status(...)
 
#define rt_hw_cpu_dcache_status(...)
 
#define rt_hw_local_irq_disable   rt_hw_interrupt_disable
 
#define rt_hw_local_irq_enable   rt_hw_interrupt_enable
 
#define RT_DEFINE_HW_SPINLOCK(x)
 
#define rt_hw_spin_lock(lock)
 
#define rt_hw_spin_unlock(lock)
 
#define rt_hw_isb()
 
#define rt_hw_dmb()
 
#define rt_hw_dsb()
 

类型定义

typedef void(* rt_isr_handler_t) (int vector, void *param)
 

枚举

enum  RT_HW_CACHE_OPS { RT_HW_CACHE_FLUSH = 0x01 , RT_HW_CACHE_INVALIDATE = 0x02 }
 

函数

void rt_hw_cpu_reset (void)
 
void rt_hw_cpu_shutdown (void)
 
const char * rt_hw_cpu_arch (void)
 
rt_uint8_trt_hw_stack_init (void *entry, void *parameter, rt_uint8_t *stack_addr, void *exit)
 
void rt_hw_interrupt_init (void)
 
void rt_hw_interrupt_mask (int vector)
 
void rt_hw_interrupt_umask (int vector)
 
rt_isr_handler_t rt_hw_interrupt_install (int vector, rt_isr_handler_t handler, void *param, const char *name)
 
void rt_hw_interrupt_uninstall (int vector, rt_isr_handler_t handler, void *param)
 
rt_base_t rt_hw_interrupt_disable (void)
 
void rt_hw_interrupt_enable (rt_base_t level)
 
rt_bool_t rt_hw_interrupt_is_disabled (void)
 
void rt_hw_context_switch (rt_ubase_t from, rt_ubase_t to)
 
void rt_hw_context_switch_to (rt_ubase_t to)
 
void rt_hw_context_switch_interrupt (rt_ubase_t from, rt_ubase_t to, rt_thread_t from_thread, rt_thread_t to_thread)
 
rt_err_t rt_hw_backtrace_frame_get (rt_thread_t thread, struct rt_hw_backtrace_frame *frame)
 
rt_err_t rt_hw_backtrace_frame_unwind (rt_thread_t thread, struct rt_hw_backtrace_frame *frame)
 
void rt_hw_console_output (const char *str)
 
void rt_hw_show_memory (rt_uint32_t addr, rt_size_t size)
 
void rt_hw_exception_install (rt_err_t(*exception_handle)(void *context))
 
void rt_hw_us_delay (rt_uint32_t us)
 
int rt_hw_cpu_id (void)
 

宏定义说明

◆ HWREG64

#define HWREG64 ( x)
值:
(*((volatile rt_uint64_t *)(x)))
unsigned long long rt_uint64_t

在文件 rthw.h37 行定义.

◆ HWREG32

#define HWREG32 ( x)
值:
(*((volatile rt_uint32_t *)(x)))
unsigned int rt_uint32_t

在文件 rthw.h40 行定义.

◆ HWREG16

#define HWREG16 ( x)
值:
(*((volatile rt_uint16_t *)(x)))
unsigned short rt_uint16_t

在文件 rthw.h43 行定义.

◆ HWREG8

#define HWREG8 ( x)
值:
(*((volatile rt_uint8_t *)(x)))
unsigned char rt_uint8_t

在文件 rthw.h46 行定义.

◆ RT_CPU_CACHE_LINE_SZ

#define RT_CPU_CACHE_LINE_SZ   32

在文件 rthw.h50 行定义.

◆ rt_hw_cpu_icache_enable

#define rt_hw_cpu_icache_enable ( ...)

在文件 rthw.h80 行定义.

◆ rt_hw_cpu_icache_disable

#define rt_hw_cpu_icache_disable ( ...)

在文件 rthw.h81 行定义.

◆ rt_hw_cpu_icache_ops

#define rt_hw_cpu_icache_ops ( ...)

在文件 rthw.h82 行定义.

◆ rt_hw_cpu_dcache_enable

#define rt_hw_cpu_dcache_enable ( ...)

在文件 rthw.h83 行定义.

◆ rt_hw_cpu_dcache_disable

#define rt_hw_cpu_dcache_disable ( ...)

在文件 rthw.h84 行定义.

◆ rt_hw_cpu_dcache_ops

#define rt_hw_cpu_dcache_ops ( ...)

在文件 rthw.h85 行定义.

◆ rt_hw_cpu_icache_status

#define rt_hw_cpu_icache_status ( ...)
值:
0

在文件 rthw.h87 行定义.

◆ rt_hw_cpu_dcache_status

#define rt_hw_cpu_dcache_status ( ...)
值:
0

在文件 rthw.h88 行定义.

◆ rt_hw_local_irq_disable

#define rt_hw_local_irq_disable   rt_hw_interrupt_disable

在文件 rthw.h152 行定义.

◆ rt_hw_local_irq_enable

#define rt_hw_local_irq_enable   rt_hw_interrupt_enable

在文件 rthw.h153 行定义.

◆ RT_DEFINE_HW_SPINLOCK

#define RT_DEFINE_HW_SPINLOCK ( x)
值:
rt_uint32_t rt_ubase_t

在文件 rthw.h233 行定义.

◆ rt_hw_spin_lock

#define rt_hw_spin_lock ( lock)
值:
rt_base_t rt_hw_interrupt_disable(void)

在文件 rthw.h235 行定义.

◆ rt_hw_spin_unlock

#define rt_hw_spin_unlock ( lock)
值:
void rt_hw_interrupt_enable(rt_base_t level)

在文件 rthw.h236 行定义.

◆ rt_hw_isb

#define rt_hw_isb ( )

在文件 rthw.h242 行定义.

◆ rt_hw_dmb

#define rt_hw_dmb ( )

在文件 rthw.h243 行定义.

◆ rt_hw_dsb

#define rt_hw_dsb ( )

在文件 rthw.h244 行定义.

类型定义说明

◆ rt_isr_handler_t

typedef void(* rt_isr_handler_t) (int vector, void *param)

在文件 rthw.h109 行定义.

枚举类型说明

◆ RT_HW_CACHE_OPS

枚举值
RT_HW_CACHE_FLUSH 0x01 
RT_HW_CACHE_INVALIDATE 0x02 

在文件 rthw.h53 行定义.

54{
55 RT_HW_CACHE_FLUSH = 0x01,
57};
@ RT_HW_CACHE_INVALIDATE
定义 rthw.h:56
@ RT_HW_CACHE_FLUSH
定义 rthw.h:55

函数说明

◆ rt_hw_stack_init()

rt_uint8_t * rt_hw_stack_init ( void * entry,
void * parameter,
rt_uint8_t * stack_addr,
void * exit )

◆ rt_hw_interrupt_init()

void rt_hw_interrupt_init ( void )

◆ rt_hw_interrupt_mask()

void rt_hw_interrupt_mask ( int vector)

◆ rt_hw_interrupt_umask()

void rt_hw_interrupt_umask ( int vector)

◆ rt_hw_interrupt_install()

rt_isr_handler_t rt_hw_interrupt_install ( int vector,
rt_isr_handler_t handler,
void * param,
const char * name )

◆ rt_hw_interrupt_uninstall()

void rt_hw_interrupt_uninstall ( int vector,
rt_isr_handler_t handler,
void * param )

◆ rt_hw_interrupt_disable()

rt_base_t rt_hw_interrupt_disable ( void )
+ 这是这个函数的调用关系图:

◆ rt_hw_interrupt_enable()

void rt_hw_interrupt_enable ( rt_base_t level)
+ 这是这个函数的调用关系图:

◆ rt_hw_context_switch()

void rt_hw_context_switch ( rt_ubase_t from,
rt_ubase_t to )

◆ rt_hw_context_switch_to()

void rt_hw_context_switch_to ( rt_ubase_t to)
+ 这是这个函数的调用关系图:

◆ rt_hw_context_switch_interrupt()

void rt_hw_context_switch_interrupt ( rt_ubase_t from,
rt_ubase_t to,
rt_thread_t from_thread,
rt_thread_t to_thread )

◆ rt_hw_console_output()

void rt_hw_console_output ( const char * str)

◆ rt_hw_show_memory()

void rt_hw_show_memory ( rt_uint32_t addr,
rt_size_t size )

◆ rt_hw_exception_install()

void rt_hw_exception_install ( rt_err_t(* exception_handle )(void *context))

◆ rt_hw_cpu_id()

int rt_hw_cpu_id ( void )

引用了 _cpus_lock.

+ 这是这个函数的调用关系图: