在线时间22 小时
UID4078887
注册时间2025-1-3
NXP金币726
该用户从未签到
中级会员
 
- 积分
- 259
- 最后登录
- 2025-7-24
|

楼主 |
发表于 2025-2-19 11:41:42
|
显示全部楼层
SystemCoreClockUpdate();
Board_Init();
Chip_GPIO_Init(LPC_GPIO_PORT);
Chip_SCU_PinMux(1,7, MD_PUP|MD_ZI , 0);
Chip_SCU_PinMux(1,8, MD_PUP|MD_ZI , 0);
Chip_SCU_PinMux(1,9, MD_PUP|MD_ZI , 0);
Chip_SCU_PinMux(1,10, MD_PUP|MD_ZI , 0);
Chip_SCU_PinMux(1,11, MD_PUP|MD_ZI , 0);
Chip_SCU_PinMux(2,12, MD_PUP|MD_ZI , 0);
Chip_GPIO_SetPortDIROutput(LPC_GPIO_PORT,1,0);
Chip_GPIO_SetPortDIROutput(LPC_GPIO_PORT,1,1);
Chip_GPIO_SetPortDIROutput(LPC_GPIO_PORT,1,2);
Chip_GPIO_SetPortDIROutput(LPC_GPIO_PORT,1,3);
Chip_GPIO_SetPortDIROutput(LPC_GPIO_PORT,1,4);
Chip_GPIO_SetPortDIROutput(LPC_GPIO_PORT,1,12);
Chip_GPIO_WritePortBit(LPC_GPIO_PORT,1,0,0);
Chip_GPIO_WritePortBit(LPC_GPIO_PORT,1,1,0);
Chip_GPIO_WritePortBit(LPC_GPIO_PORT,1,2,0);
Chip_GPIO_WritePortBit(LPC_GPIO_PORT,1,3,0);
Chip_GPIO_WritePortBit(LPC_GPIO_PORT,1,4,0);
Chip_GPIO_WritePortBit(LPC_GPIO_PORT,1,12,0); |
|