comparison hw.c @ 24:1e2fa7396f98

Reduce prescaler to 2, the flash is capable of 25MHz reads (although the touch screen is limited to ~2.5MHz)
author Daniel O'Connor <darius@dons.net.au>
date Sat, 17 Nov 2012 12:17:58 +1030
parents afdd22502c2a
children 5c9d2e3d6591
comparison
equal deleted inserted replaced
23:2bce4dbf52b8 24:1e2fa7396f98
251 SPI_InitStructure.SPI_Mode = SPI_Mode_Master; 251 SPI_InitStructure.SPI_Mode = SPI_Mode_Master;
252 SPI_InitStructure.SPI_DataSize = SPI_DataSize_8b; 252 SPI_InitStructure.SPI_DataSize = SPI_DataSize_8b;
253 SPI_InitStructure.SPI_CPOL = SPI_CPOL_Low; 253 SPI_InitStructure.SPI_CPOL = SPI_CPOL_Low;
254 SPI_InitStructure.SPI_CPHA = SPI_CPHA_1Edge; 254 SPI_InitStructure.SPI_CPHA = SPI_CPHA_1Edge;
255 SPI_InitStructure.SPI_NSS = SPI_NSS_Soft; 255 SPI_InitStructure.SPI_NSS = SPI_NSS_Soft;
256 SPI_InitStructure.SPI_BaudRatePrescaler = SPI_BaudRatePrescaler_64; 256 SPI_InitStructure.SPI_BaudRatePrescaler = SPI_BaudRatePrescaler_2;
257 SPI_InitStructure.SPI_FirstBit = SPI_FirstBit_MSB; 257 SPI_InitStructure.SPI_FirstBit = SPI_FirstBit_MSB;
258 SPI_InitStructure.SPI_CRCPolynomial = 7; 258 SPI_InitStructure.SPI_CRCPolynomial = 7;
259 SPI_Init(SPI1, &SPI_InitStructure); 259 SPI_Init(SPI1, &SPI_InitStructure);
260 260
261 /* SPI1 enable */ 261 /* SPI1 enable */