在线时间1681 小时
UID43170
注册时间2007-7-20
NXP金币2679
TA的每日心情 | 擦汗 昨天 11:43 |
---|
签到天数: 2105 天 连续签到: 3 天 [LV.Master]伴坛终老
金牌会员
 
- 积分
- 14292
- 最后登录
- 2025-8-21
|
发表于 2018-12-6 15:45:16
|
显示全部楼层
2,MIAN之前就调用了SystemInit,SystemInit里调用了Board_SystemInit();
void SystemInit(void)
{
#if defined(NO_BOARD_LIB)
/* Chip specific SystemInit */
Chip_SystemInit();
#else
/* Setup system clocking and muxing */
Board_SystemInit();
#endif
}
3,Board_SystemInit()里调用了Board_SetupMuxing();
/* Sets up system pin muxing */
void Board_SetupMuxing(void)
{
/* Enable IOCON clock */
Chip_Clock_EnablePeriphClock(SYSCTL_CLOCK_IOCON);
Chip_IOCON_SetPinMuxing(LPC_IOCON, pinmuxing, sizeof(pinmuxing) / sizeof(PINMUX_GRP_T));
}
/* Set up and initialize clocking prior to call to main */
void Board_SetupClocking(void)
{
Chip_SetupXtalClocking();
}
/* Set up and initialize hardware prior to call to main */
void Board_SystemInit(void)
{
/* Setup system clocking and muxing */
Board_SetupMuxing();/* Muxing first as it sets up ext oscillator pins */
Board_SetupClocking();
}
|
|