34 lines
655 B
C
34 lines
655 B
C
#ifndef RT_MPU_H
|
|
#define RT_MPU_H
|
|
|
|
#ifdef __cplusplus
|
|
extern "C" {
|
|
#endif
|
|
|
|
#ifndef RT_MPU_ENABLE
|
|
#define RT_MPU_ENABLE 0
|
|
#endif
|
|
|
|
#if RT_MPU_ENABLE
|
|
|
|
#include <rt/arch/mpu.h>
|
|
|
|
#else /* !RT_MPU_ENABLE */
|
|
|
|
/* Provide no-op macros for when there's no MPU. */
|
|
#define RT_MPU_CONFIG_INIT(config, ...) \
|
|
do \
|
|
{ \
|
|
} while (0)
|
|
|
|
#define RT_MPU_PRIV_DATA(name)
|
|
#define RT_MPU_PRIV_BSS(name)
|
|
|
|
#endif /* RT_MPU_ENABLE */
|
|
|
|
#ifdef __cplusplus
|
|
}
|
|
#endif
|
|
|
|
#endif /* RT_MPU_H */
|