NuttX and apps update 7.29

This commit is contained in:
Daniel Agar
2019-07-10 12:58:35 -04:00
parent fbd3386c39
commit dc10a68539
20 changed files with 93 additions and 35 deletions
@@ -43,7 +43,7 @@
#include <stdbool.h>
#include "nvic.h"
#include "cache.h"
#include <nuttx/cache.h>
#include "up_arch.h"
#include <parameters/param.h>
@@ -93,7 +93,7 @@ void board_configure_dcache(int stage)
/* On boot we should default to disabled on effected HW */
if (erratta && stage == 0) {
arch_disable_dcache();
up_disable_dcache();
return;
}
@@ -106,15 +106,15 @@ void board_configure_dcache(int stage)
switch (dcache) {
default:
case 0:
erratta ? arch_disable_dcache() : arch_enable_dcache();
erratta ? up_disable_dcache() : up_enable_dcache();
break;
case 1:
arch_disable_dcache();
up_disable_dcache();
break;
case 2:
arch_enable_dcache();
up_enable_dcache();
break;
return;
}
@@ -157,11 +157,11 @@ int board_dcache_info(int action, char **pmesg, bool *pstate)
}
if (action == 0) {
arch_disable_dcache();
up_disable_dcache();
}
if (action == 1) {
arch_enable_dcache();
up_enable_dcache();
}
if (pmesg) {