Hardware Related Package includes board support package(BSP) and CSP(Chip
Support Package).
Board Support Package(BSP) is the hardware related wrapper, for example, peripherals in board, the pinmux setting etc. In RT-Thread RTOS, the bsp is placed under bsp directory.
Chip Support Package(CSP) is a software set that contains chip specific software. A CSP usually includes operating system porting and peripheral device drivers inside chip. In RT-Thread RTOS, the csp is placed under libcpu directory.
◆ rt_hw_interrupt_disable()
This function will return current system interrupt status and disable system interrupt.
- 返回
- the current system interrupt status.
◆ rt_hw_interrupt_enable()
void rt_hw_interrupt_enable |
( |
rt_base_t | level | ) |
|
This function will set the specified interrupt status, which shall saved by rt_hw_intterrupt_disable function. If the saved interrupt status is interrupt opened, this function will open system interrupt status.
- 参数
-
level | the interrupt status to be set. |
◆ rt_hw_interrupt_init()
void rt_hw_interrupt_init |
( |
void | | ) |
|
This function initializes interrupt.
◆ rt_hw_interrupt_mask()
void rt_hw_interrupt_mask |
( |
int | vector | ) |
|
This function masks the specified interrupt.
- 参数
-
vector | the interrupt number to be masked. |
- 注解
- not all of platform provide this function.
◆ rt_hw_interrupt_umask()
void rt_hw_interrupt_umask |
( |
int | vector | ) |
|
This function umasks the specified interrupt.
- 参数
-
vector | the interrupt number to be unmasked. |
- 注解
- not all of platform provide this function.
◆ rt_hw_interrupt_install()
This function will install specified interrupt handler.
- 参数
-
vector | the interrupt number to be installed. |
new_handler | the new interrupt handler. |
old_handler | the old interrupt handler. This parameter can be RT_NULL. |
- 注解
- not all of platform provide this function.