comparison Discovery/Src/data_exchange_main.c @ 156:1fbdb45db701 FlipDisplay

Removed special indicator for DMA transfer error
author Ideenmodellierer
date Sun, 03 Mar 2019 19:18:51 +0100
parents 1ac5033f7c7a
children 05c770dc2911
comparison
equal deleted inserted replaced
155:4fd8bbc7d841 156:1fbdb45db701
133 void DataEX_Error_Handler(uint8_t answer) 133 void DataEX_Error_Handler(uint8_t answer)
134 { 134 {
135 count_DataEX_Error_Handler++; 135 count_DataEX_Error_Handler++;
136 last_error_DataEX_Error_Handler = answer; 136 last_error_DataEX_Error_Handler = answer;
137 137
138 /* A wrong footer indicates a communication interrupt. Statemachine is waiting for new data which is not received because no new transmission is triggered */ 138 /* A wrong footer indicates a communication interrupt. State machine is waiting for new data which is not received because no new transmission is triggered */
139 /* ==> Abort data exchange to enable a new RX / TX cycle */ 139 /* ==> Abort data exchange to enable a new RX / TX cycle */
140 if(answer == HAL_BUSY) 140 if(answer == HAL_BUSY)
141 { 141 {
142 HAL_SPI_Abort_IT(&cpu2DmaSpi); 142 HAL_SPI_Abort_IT(&cpu2DmaSpi);
143 data_old__lost_connection_to_slave_counter_total += 1000; /* add significant error offset to indicate error causing an abort event */
144 } 143 }
145 144
146 return; 145 return;
147 } 146 }
148 147