Aug 29, 2019
03:24 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Aug 29, 2019
03:24 PM
Hi All,
How to intialize SPI to communicate with sflash in wiced. How we can generate different clock frequencies on the clk pin.
Please let me know how i can do this?
Thanks,
Basavanagouda.
Solved! Go to Solution.
- Tags:
- spi
1 Solution
Sep 02, 2019
06:58 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Sep 02, 2019
06:58 PM
if 43907 is used now, we often modify SPI_CLOCK_SPEED_HZ to change the SPI clock.
#ifdef USE_SPI0_DEVICE
static const wiced_spi_device_t spi0_device =
{
.port = WICED_SPI_1,
.chip_select = WICED_GPIO_22,
.speed = SPI_CLOCK_SPEED_HZ,
.mode = SPI_MODE,
.bits = SPI_BIT_WIDTH
};
#endif
static const wiced_spi_device_t spi1_device =
{
.port = WICED_SPI_2,
.chip_select = WICED_GPIO_NONE,
.speed = SPI_CLOCK_SPEED_HZ,
.mode = SPI_MODE,
.bits = SPI_BIT_WIDTH
};
4 Replies