aboutsummaryrefslogtreecommitdiffstats
path: root/os
diff options
context:
space:
mode:
authorMichael Walker <walkerstop@gmail.com>2018-05-02 05:15:22 -0700
committerMichael Walker <walkerstop@gmail.com>2018-05-02 05:15:22 -0700
commit0f3af19758181dde931d3889ccc8eef0f00b4e39 (patch)
tree85fa7b4efb39261336461317c4bfd68e2a2265f0 /os
parent72b22c7f67df0bddc2094ecfd76f82f0bfb06172 (diff)
downloadChibiOS-Contrib-0f3af19758181dde931d3889ccc8eef0f00b4e39.tar.gz
ChibiOS-Contrib-0f3af19758181dde931d3889ccc8eef0f00b4e39.tar.bz2
ChibiOS-Contrib-0f3af19758181dde931d3889ccc8eef0f00b4e39.zip
Disable MPU by default
Diffstat (limited to 'os')
-rw-r--r--os/hal/ports/KINETIS/MK66F18/hal_lld.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/os/hal/ports/KINETIS/MK66F18/hal_lld.c b/os/hal/ports/KINETIS/MK66F18/hal_lld.c
index 857f384..bb8991a 100644
--- a/os/hal/ports/KINETIS/MK66F18/hal_lld.c
+++ b/os/hal/ports/KINETIS/MK66F18/hal_lld.c
@@ -81,6 +81,11 @@ const uint8_t _cfm[0x10] = {
*/
void hal_lld_init(void) {
+#if defined(MK66F18)
+ /* Disable the MPU by default */
+ SYSMPU->CESR &= ~SYSMPU_CESR_VLD_MASK;
+#endif
+
}
/**