#MPU driver for Cortex-M4
##Requirements
- ChibiOS
- Cortex-M4 with Memory Protection Unit
##Usage
By default the MPU prevents access to NULL pointer via memory region 7 (highest priority).
To enable this you only have call mpu_init()
to be protected.
You can then further restrict memory by using mpu_configure_region
, e.g.:
/* Disable code execution from RAM. */
mpu_configure_region(6, /* Region number. */
0x2000 0000, /* Base address */
20, /* 1MB (2^20) */
AP_RW_RW,
false); /* Non executable. */
##License This code is released under a BSD license