Merge branch 'master' of https://github.com/RT-Thread/rt-thread
This commit is contained in:
commit
7b2decbb7c
|
@ -23,6 +23,7 @@
|
||||||
* 2006-04-25 Bernard add rt_hw_context_switch_interrupt declaration
|
* 2006-04-25 Bernard add rt_hw_context_switch_interrupt declaration
|
||||||
* 2006-09-24 Bernard add rt_hw_context_switch_to declaration
|
* 2006-09-24 Bernard add rt_hw_context_switch_to declaration
|
||||||
* 2012-12-29 Bernard add rt_hw_exception_install declaration
|
* 2012-12-29 Bernard add rt_hw_exception_install declaration
|
||||||
|
* 2017-10-17 Hichard add some micros
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#ifndef __RT_HW_H__
|
#ifndef __RT_HW_H__
|
||||||
|
@ -34,6 +35,19 @@
|
||||||
extern "C" {
|
extern "C" {
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
/*
|
||||||
|
* Some macros define
|
||||||
|
*/
|
||||||
|
#ifndef HWREG32
|
||||||
|
#define HWREG32(x) (*((volatile rt_uint32_t *)(x)))
|
||||||
|
#endif
|
||||||
|
#ifndef HWREG16
|
||||||
|
#define HWREG16(x) (*((volatile rt_uint16_t *)(x)))
|
||||||
|
#endif
|
||||||
|
#ifndef HWREG8
|
||||||
|
#define HWREG8(x) (*((volatile rt_uint8_t *)(x)))
|
||||||
|
#endif
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* CPU interfaces
|
* CPU interfaces
|
||||||
*/
|
*/
|
||||||
|
@ -98,6 +112,11 @@ void rt_hw_show_memory(rt_uint32_t addr, rt_uint32_t size);
|
||||||
*/
|
*/
|
||||||
void rt_hw_exception_install(rt_err_t (*exception_handle)(void *context));
|
void rt_hw_exception_install(rt_err_t (*exception_handle)(void *context));
|
||||||
|
|
||||||
|
/*
|
||||||
|
* delay interfaces
|
||||||
|
*/
|
||||||
|
void rt_hw_us_delay(rt_uint32_t us);
|
||||||
|
|
||||||
#ifdef __cplusplus
|
#ifdef __cplusplus
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
Loading…
Reference in New Issue