io_cfg.isDQ32Bit = CyTrue;
io_cfg.useSpi = CyTrue;
FX3 use of SPI and 32 bits words GPIF不能共存。如果必须用32 bits words GPIF,必须:
io_cfg.useSpi = CyFalse;
可以使用模拟spi接口。
参考:cyfxusbspigpiomode
CyFxGpioInit
io_cfg.gpioSimpleEn[1] = 0x01E00000;
io_cfg.useUart = CyFalse;
Most of the IO pins on the FX3 device are multi-purpose with the specific
configuration being selected at system start-up. This enumeration lists the
various IO operating modes relating to Serial peripheral interfaces.
The I2C interface is always available. If the GPIF data bus is configured as
32-bit wide, only one of the SPI, UART and I2S interfaces are available. In
this case, the configuration chosen should be CY_U3P_IO_MATRIX_LPP_DEFAULT.
If the GPIF data bus is 8, 16 or 24 bits wide; it is possible to use all of
the SPI, UART and I2S interfaces. However, the peripheral pins can be relocated
in this case. Refer to the FX3 datasheet for more details and choose the desired
configuration accordingly.
In the case of the FX3S device, none of the UART, SPI and I2S interfaces are
available if the second storage port (S1) is used in 8-bit mode. In this case,
the configuration chosen should CY_U3P_IO_MATRIX_LPP_NONE.