CMD没有特殊地方,下面使用F13--F6做数据口
#define databus GpioDataRegs.GPFDAT.all<br />#define databusoutput GpioMuxRegs.GPFDIR.all |=0x3fc0;<br />#define databusinput GpioMuxRegs.GPFDIR.all &=0xc03f;<br /><br /><br />databusoutput; //IO做输出<br />databus=firstpara<<6; //输出数据<br />....<br />....<br />databusinput //IO做输入<br />lcdstatus=databus>>6; //读进数据
|
|