2 Star 1 Fork 1

976717326 / Teacup_Firmware

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
cpu-arm.c 665 Bytes
一键复制 编辑 原始数据 按行查看 历史
/** \file
\brief CPU initialisation, ARM specific part.
To be included from cpu.c, for details see there.
*/
#if defined TEACUP_C_INCLUDE && defined __ARMEL__
#include "config_wrapper.h"
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__ */
C
1
https://gitee.com/rhh/Teacup_Firmware.git
git@gitee.com:rhh/Teacup_Firmware.git
rhh
Teacup_Firmware
Teacup_Firmware
master

搜索帮助