Mercurial > public > ostc4
diff Small_CPU/Src/scheduler.c @ 148:ee744c7160ce FlipDisplay
Use SPI TX callback to synchronize to main CPU
author | Ideenmodellierer |
---|---|
date | Sat, 02 Mar 2019 17:01:06 +0100 |
parents | 69f4b8067daa |
children | 4fd8bbc7d841 |
line wrap: on
line diff
--- a/Small_CPU/Src/scheduler.c Sat Mar 02 16:57:59 2019 +0100 +++ b/Small_CPU/Src/scheduler.c Sat Mar 02 17:01:06 2019 +0100 @@ -58,6 +58,7 @@ SDevice DeviceDataFlash; uint8_t deviceDataFlashValid = 0; uint8_t deviceDataSubSeconds = 0; +uint8_t dohardspisync = 1; /* Private variables ---------------------------------------------------------*/ /* can be lost while in sleep */ @@ -181,6 +182,8 @@ global.deviceData.temperatureMaximum.value_int32 = INT32_MIN; global.deviceData.temperatureMinimum.value_int32 = INT32_MAX; global.deviceData.voltageMinimum.value_int32 = INT32_MAX; + + dohardspisync = 1; } @@ -430,7 +433,7 @@ void schedule_check_resync(void) { //TODO: REMOVE - if((global.check_sync_not_running >= 2)) + if((global.check_sync_not_running >= 3)) { // global.dataSendToSlaveIsNotValidCount = 0; global.check_sync_not_running = 0; @@ -904,7 +907,6 @@ } } } -static uint8_t dohardspisync = 1; void HardSyncToSPI() {