- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi:
as we know, the spi master initial API is below:
void wiced_hal_pspi_init( spi_interface_t spi,
UINT8 devRole,
UINT16 spiPinPullConfig,
UINT32 spiGpioCfg,
UINT32 clkSpeed,
SPI_ENDIAN endian,
SPI_SS_POLARITY polarity,
SPI_MODE mode,
UINT8 csPin);
there is a input parameter(UINT8 csPin)of the wiced_hal_pspi_init, can I use the IO pin that does not belong to the CYW20735 to control the SPI slave cs?
if I use the IO pin of another MCU as the CS PIN , how to fill in the input parameter UINT8 csPin of the wiced_hal_pspi_init API
thanks!
Mandy
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
The 20735 doesn't support to use the CS pin on the other MCU.
Why do you need to port the CS pin to another MCU?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi OwenZ_26:
because the third party CYW20735 bt mesh module which we used is not enough gpios to use
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi OwenZ_26:
as I know, the SPI CS pin function only produce a high and low level
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Sorry, you must assign a GPIO to the CS function in the SDK.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
thanks. I have gotten it !