Skip to content

Commit da8175b

Browse files
committed
stm32f4 SPI-flash: Remove unnecessary delay after CS-off
1 parent fcf1985 commit da8175b

1 file changed

Lines changed: 0 additions & 3 deletions

File tree

hal/spi/spi_drv_stm32f4.c

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -30,12 +30,9 @@
3030

3131
void spi_cs_off(void)
3232
{
33-
int i;
3433
GPIOE_BSRR |= (1 << SPI_FLASH_PIN);
3534
while(!(GPIOE_ODR & (1 << SPI_FLASH_PIN)))
3635
;
37-
for(i = 0; i < 168000; i++)
38-
;
3936
}
4037

4138
void spi_cs_on(void)

0 commit comments

Comments
 (0)