mirror of
https://github.com/openmv/openmv.git
synced 2025-11-04 14:49:50 +08:00
common/vospi: Set vospi bus CPOL=1 and CPHA=1.
This commit is contained in:
parent
ddc3194393
commit
aa90589266
@ -179,6 +179,8 @@ int vospi_init(uint32_t n_packets, void *buffer) {
|
||||
spi_config.bus_mode = OMV_SPI_BUS_RX;
|
||||
spi_config.datasize = 16;
|
||||
spi_config.baudrate = VOSPI_CLOCK_SPEED;
|
||||
spi_config.clk_pol = OMV_SPI_CPOL_HIGH;
|
||||
spi_config.clk_pha = OMV_SPI_CPHA_2EDGE;
|
||||
spi_config.dma_flags = OMV_SPI_DMA_CIRCULAR | OMV_SPI_DMA_DOUBLE;
|
||||
|
||||
if (omv_spi_init(&vospi.spi_bus, &spi_config) != 0) {
|
||||
|
||||
@ -263,6 +263,8 @@ int fir_lepton_init(omv_i2c_t *bus, int *w, int *h, int *refresh, int *resolutio
|
||||
spi_config.datasize = 16;
|
||||
spi_config.bus_mode = OMV_SPI_BUS_RX;
|
||||
spi_config.nss_enable = false;
|
||||
spi_config.clk_pol = OMV_SPI_CPOL_HIGH;
|
||||
spi_config.clk_pha = OMV_SPI_CPHA_2EDGE;
|
||||
spi_config.dma_flags = OMV_SPI_DMA_CIRCULAR | OMV_SPI_DMA_DOUBLE;
|
||||
omv_spi_init(&spi_bus, &spi_config);
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user