comparison Discovery/Src/ostc.c @ 140:f6c52eb0e25d FlipDisplay

Increase prescalar => frame takes about 4ms.
author Ideenmodellierer
date Thu, 28 Feb 2019 19:03:29 +0100
parents 22a1094545f3
children 5ca177d2df5d
comparison
equal deleted inserted replaced
139:decb0461302a 140:f6c52eb0e25d
79 cpu2DmaSpi.Init.Direction = SPI_DIRECTION_2LINES; 79 cpu2DmaSpi.Init.Direction = SPI_DIRECTION_2LINES;
80 cpu2DmaSpi.Init.DataSize = SPI_DATASIZE_8BIT; 80 cpu2DmaSpi.Init.DataSize = SPI_DATASIZE_8BIT;
81 cpu2DmaSpi.Init.CLKPolarity = SPI_POLARITY_LOW; 81 cpu2DmaSpi.Init.CLKPolarity = SPI_POLARITY_LOW;
82 cpu2DmaSpi.Init.CLKPhase = SPI_PHASE_1EDGE; 82 cpu2DmaSpi.Init.CLKPhase = SPI_PHASE_1EDGE;
83 cpu2DmaSpi.Init.NSS = SPI_NSS_SOFT;//SPI_NSS_HARD_OUTPUT;//SPI_NSS_SOFT; 83 cpu2DmaSpi.Init.NSS = SPI_NSS_SOFT;//SPI_NSS_HARD_OUTPUT;//SPI_NSS_SOFT;
84 cpu2DmaSpi.Init.BaudRatePrescaler = SPI_BAUDRATEPRESCALER_8; 84 cpu2DmaSpi.Init.BaudRatePrescaler = SPI_BAUDRATEPRESCALER_128;
85 cpu2DmaSpi.Init.FirstBit = SPI_FIRSTBIT_MSB; 85 cpu2DmaSpi.Init.FirstBit = SPI_FIRSTBIT_MSB;
86 cpu2DmaSpi.Init.TIMode = SPI_TIMODE_DISABLED; 86 cpu2DmaSpi.Init.TIMode = SPI_TIMODE_DISABLED;
87 cpu2DmaSpi.Init.CRCCalculation = SPI_CRCCALCULATION_DISABLED; 87 cpu2DmaSpi.Init.CRCCalculation = SPI_CRCCALCULATION_DISABLED;
88 cpu2DmaSpi.Init.CRCPolynomial = 7; 88 cpu2DmaSpi.Init.CRCPolynomial = 7;
89 89