comparison Small_CPU/Src/spi.c @ 84:e6abbef57475 kittz

Remove unusable code!!! prepare data for SPI in ONLY 1 IRQ!!!!
author Dmitry Romanov <kitt@bk.ru>
date Wed, 21 Nov 2018 10:25:15 +0300
parents a6f0881074a4
children 923c4566a2a1
comparison
equal deleted inserted replaced
83:ef4f45df70c1 84:e6abbef57475
367 global.dataSendToSlaveIsValid = 0; 367 global.dataSendToSlaveIsValid = 0;
368 global.dataSendToSlaveIsNotValidCount++; 368 global.dataSendToSlaveIsNotValidCount++;
369 } 369 }
370 global.dataSendToMaster.power_on_reset = 0; 370 global.dataSendToMaster.power_on_reset = 0;
371 global.deviceDataSendToMaster.power_on_reset = 0; 371 global.deviceDataSendToMaster.power_on_reset = 0;
372 if(!global.dataSendToSlaveStopEval) 372 if(global.dataUpdateIsNeeded)
373 { 373 {
374 scheduleSpecial_Evaluate_DataSendToSlave(); 374 scheduleSpecial_Evaluate_DataSendToSlave();
375 global.dataUpdateIsNeeded=0;
375 } 376 }
376 SPI_Start_single_TxRx_with_Master(); 377 SPI_Start_single_TxRx_with_Master();
377 } 378 }
378 } 379 }
379 380