void GPIOInit( void )
{
/* Enable AHB clock to the GPIO domain. */
LPC_SYSCON->SYSAHBCLKCTRL |= (1<<6); //使能GPIO时钟
LPC_IOCON->PIO1_2 |= 0X11;
LPC_IOCON->PIO1_0 |= 0X11;
LPC_IOCON->PIO1_1 |= 0X11;
LPC_GPIO1->DIR |= 0x007;
LPC_GPIO1->DATA = 0X000;
}
最后还是不能把P1.0,P1.1,P1.2拉低,
有哪位大侠曾遇到过这种问题,请给小弟指点迷津 |