ARM: take care of system startup status.
Not much to do, still it was necessary to review this topic.
This commit is contained in:
parent
2376242c36
commit
9c29665a72
13
cpu-arm.c
13
cpu-arm.c
|
|
@ -7,7 +7,20 @@
|
||||||
|
|
||||||
#if defined TEACUP_C_INCLUDE && defined __ARMEL__
|
#if defined TEACUP_C_INCLUDE && defined __ARMEL__
|
||||||
|
|
||||||
|
#include "config_wrapper.h"
|
||||||
|
|
||||||
void cpu_init() {
|
void cpu_init() {
|
||||||
|
/**
|
||||||
|
Other than on ATmegas, the LPC11xx disables all peripherals except GPIO
|
||||||
|
and SPI0 on reset. Brown Out detector is set to kick in at 1.46 V, without
|
||||||
|
causing a reset. See chapter 3.5.14 in the LPC11xx User Manual.
|
||||||
|
|
||||||
|
GPIO is needed in all configurations, so we just turn off SPI0 if not
|
||||||
|
needed.
|
||||||
|
*/
|
||||||
|
#ifndef SPI
|
||||||
|
LPC_SYSCON->SYSAHBCLKCTRL &= ~(1 << 11);
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
#endif /* defined TEACUP_C_INCLUDE && defined __ARMEL__ */
|
#endif /* defined TEACUP_C_INCLUDE && defined __ARMEL__ */
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue