comparison Small_CPU/Src/baseCPU2.c @ 239:e4207f0aaa4b div-fixes-5

cleanup: factor out dataSendToSlaveStopEval The global dataSendToSlaveStopEval was set all over the place, but never tested, so useless to set it. And remove an unused piece of code. Trivial cleanup. Signed-off-by: Jan Mulder <jlmulder@xs4all.nl>
author Jan Mulder <jlmulder@xs4all.nl>
date Mon, 08 Apr 2019 10:35:29 +0200
parents b95741467355
children 2f0eb65df557
comparison
equal deleted inserted replaced
238:a9d798e8c11f 239:e4207f0aaa4b
46 [..] The IRQs are are only used for SystemTick and SPI TransferComplete after 46 [..] The IRQs are are only used for SystemTick and SPI TransferComplete after
47 DMA data reception. 47 DMA data reception.
48 48
49 [..] HAL_SPI_TxRxCpltCallback() restarts DMA and will call 49 [..] HAL_SPI_TxRxCpltCallback() restarts DMA and will call
50 scheduleSpecial_Evaluate_DataSendToSlave() only if it is not blocked 50 scheduleSpecial_Evaluate_DataSendToSlave() only if it is not blocked
51 by I2C for example by setting global.dataSendToSlaveStopEval to 0. 51 by I2C.
52 If the evaluation is blocked it has to be tested and executed afterwards. 52 If the evaluation is blocked it has to be tested and executed afterwards.
53 I2C is executed _without_ the usage of interrupts. 53 I2C is executed _without_ the usage of interrupts.
54 54
55 ============================================================================== 55 ==============================================================================
56 ##### Main loop ##### 56 ##### Main loop #####