stm32f4 SPI-flash: Remove unnecessary delay after CS-off

pull/5/head
Daniele Lacamera 2019-03-18 12:10:40 +01:00
parent fcf1985978
commit da8175b856
1 changed files with 0 additions and 3 deletions

View File

@ -30,12 +30,9 @@
void spi_cs_off(void)
{
int i;
GPIOE_BSRR |= (1 << SPI_FLASH_PIN);
while(!(GPIOE_ODR & (1 << SPI_FLASH_PIN)))
;
for(i = 0; i < 168000; i++)
;
}
void spi_cs_on(void)