|
// Waiting for enable flag set
EALLOW;
GpioMuxRegs.GPAMUX.all = 0x0000;//设置为通用数字I/O口
GpioMuxRegs.GPADIR.bit.GPIOA0=1;//设置为输出口
GpioMuxRegs.GPADIR.bit.GPIOA1=1;
GpioMuxRegs.GPADIR.bit.GPIOA2=1;
GpioMuxRegs.GPADIR.bit.GPIOA3=1;
GpioMuxRegs.GPADIR.bit.GPIOA4=1;
GpioMuxRegs.GPADIR.bit.GPIOA5=1;
EDIS;
GpioDataRegs.GPASET.bit.GPIOA0=1; //设置为低电平
GpioDataRegs.GPASET.bit.GPIOA1=1;
GpioDataRegs.GPASET.bit.GPIOA2=1;
GpioDataRegs.GPASET.bit.GPIOA3=1;
GpioDataRegs.GPASET.bit.GPIOA4=1;
GpioDataRegs.GPASET.bit.GPIOA5=1;
while (EnableFlag==FALSE)
{
BackTicker++;
}
这样可以吗 我试了下好像还是有问题 |
|