DSP 28335 的 GPIO的输入设置:
GPIO的输入设置时,除了将此GPIO设置为输入之外,还需要将此GPIO口的电平拉高
-
- GpioCtrlRegs.GPBMUX2.bit.GPIO62 = 0;
- GpioCtrlRegs.GPBDIR.bit.GPIO62 = 0;
- GpioCtrlRegs.GPBPUD.bit.GPIO62 = 0;
GPIO的输出设置,
-
- GpioCtrlRegs.GPBMUX2.bit.GPIO63 = 0;
- GpioCtrlRegs.GPBDIR.bit.GPIO63=1;