Mercurial > public > ostc4
comparison Discovery/Src/data_exchange_main.c @ 88:3db7389d49cc kittz
revert
author | Dmitry Romanov <kitt@bk.ru> |
---|---|
date | Thu, 22 Nov 2018 12:02:55 +0300 |
parents | e746bf846638 |
children | ff7775cc34c4 |
comparison
equal
deleted
inserted
replaced
87:e746bf846638 | 88:3db7389d49cc |
---|---|
304 uint8_t DataEX_call(void) | 304 uint8_t DataEX_call(void) |
305 { | 305 { |
306 uint8_t SPI_DMA_answer = 0; | 306 uint8_t SPI_DMA_answer = 0; |
307 | 307 |
308 HAL_GPIO_WritePin(SMALLCPU_CSB_GPIO_PORT,SMALLCPU_CSB_PIN,GPIO_PIN_SET); | 308 HAL_GPIO_WritePin(SMALLCPU_CSB_GPIO_PORT,SMALLCPU_CSB_PIN,GPIO_PIN_SET); |
309 delayMicros(50); //~exchange time(+20% reserve) | 309 delayMicros(10); //~exchange time(+20% reserve) |
310 HAL_GPIO_WritePin(SMALLCPU_CSB_GPIO_PORT,SMALLCPU_CSB_PIN,GPIO_PIN_RESET); | 310 HAL_GPIO_WritePin(SMALLCPU_CSB_GPIO_PORT,SMALLCPU_CSB_PIN,GPIO_PIN_RESET); |
311 /* one cycle with NotChipSelect true to clear slave spi buffer */ | 311 /* one cycle with NotChipSelect true to clear slave spi buffer */ |
312 | 312 |
313 if(data_old__lost_connection_to_slave_counter_temp >= 3) | 313 if(data_old__lost_connection_to_slave_counter_temp >= 3) |
314 { | 314 { |