diff options
author | Michael Walker <walkerstop@gmail.com> | 2018-05-02 05:15:22 -0700 |
---|---|---|
committer | Michael Walker <walkerstop@gmail.com> | 2018-05-02 05:15:22 -0700 |
commit | 0f3af19758181dde931d3889ccc8eef0f00b4e39 (patch) | |
tree | 85fa7b4efb39261336461317c4bfd68e2a2265f0 | |
parent | 72b22c7f67df0bddc2094ecfd76f82f0bfb06172 (diff) | |
download | ChibiOS-Contrib-0f3af19758181dde931d3889ccc8eef0f00b4e39.tar.gz ChibiOS-Contrib-0f3af19758181dde931d3889ccc8eef0f00b4e39.tar.bz2 ChibiOS-Contrib-0f3af19758181dde931d3889ccc8eef0f00b4e39.zip |
Disable MPU by default
-rw-r--r-- | os/hal/ports/KINETIS/MK66F18/hal_lld.c | 5 |
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
+
}
/**
|