iar 类型检查严格 修改函数定义类型。
This commit is contained in:
parent
2568a85c7a
commit
f7111cd965
|
@ -20,7 +20,7 @@
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
void mpu_init(void)
|
int mpu_init(void)
|
||||||
{
|
{
|
||||||
/* Disable MPU */
|
/* Disable MPU */
|
||||||
MPU->CTRL &= ~MPU_CTRL_ENABLE_Msk;
|
MPU->CTRL &= ~MPU_CTRL_ENABLE_Msk;
|
||||||
|
@ -92,5 +92,7 @@ void mpu_init(void)
|
||||||
|
|
||||||
/* Enable MPU */
|
/* Enable MPU */
|
||||||
MPU->CTRL |= MPU_CTRL_PRIVDEFENA_Msk | MPU_CTRL_ENABLE_Msk;
|
MPU->CTRL |= MPU_CTRL_PRIVDEFENA_Msk | MPU_CTRL_ENABLE_Msk;
|
||||||
|
|
||||||
|
return 0;
|
||||||
}
|
}
|
||||||
INIT_BOARD_EXPORT(mpu_init);
|
INIT_BOARD_EXPORT(mpu_init);
|
||||||
|
|
|
@ -2,7 +2,7 @@
|
||||||
#define __DRV_MPU_H
|
#define __DRV_MPU_H
|
||||||
|
|
||||||
/* Initialize Cortex M4 MPU */
|
/* Initialize Cortex M4 MPU */
|
||||||
void mpu_init(void);
|
int mpu_init(void);
|
||||||
void mpu_enable(int enable);
|
void mpu_enable(int enable);
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|
Loading…
Reference in New Issue