DAC stable version
This commit is contained in:
+2
-2
@@ -1254,10 +1254,10 @@ static void ZM_spi_init() {
|
||||
SPI_init();
|
||||
|
||||
SPI_Params_init(&spiParams0);
|
||||
spiParams0.bitRate = 1200000; // 1.2M
|
||||
spiParams0.bitRate = 12000000; // 12M
|
||||
spiParams0.mode = SPI_MASTER;
|
||||
spiParams0.dataSize = 8;
|
||||
spiParams0.frameFormat = SPI_POL0_PHA1;
|
||||
spiParams0.frameFormat = SPI_POL0_PHA0;
|
||||
|
||||
spiHandle0 = SPI_open(Board_SPI0, &spiParams0); // ADC and DAC SPI
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user