InitSysCtrl(); //这个包含了SysCtrlRegs.PCLKCR0.bit.I2CAENCLK = 1;
InitI2CGpio();
I2caRegs.I2CMDR.bit.IRS = 0;
I2caRegs.I2CPSC.all = 14;
I2caRegs.I2CCLKL = 10;
I2caRegs.I2CCLKH = 5;
I2caRegs.I2CMDR.bit.IRS = 1;
This thread has been locked.
If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.
InitSysCtrl(); //这个包含了SysCtrlRegs.PCLKCR0.bit.I2CAENCLK = 1;
InitI2CGpio();
I2caRegs.I2CMDR.bit.IRS = 0;
I2caRegs.I2CPSC.all = 14;
I2caRegs.I2CCLKL = 10;
I2caRegs.I2CCLKH = 5;
I2caRegs.I2CMDR.bit.IRS = 1;