Mercurial > public > ostc4
comparison Small_CPU/Inc/scheduler.h @ 264:b3685fbada3b IPC_Sync_Improvment_2
Sync to Main 100ms time stamp & added Reinitialization of globals after startup
Added function to synchronize RTE to the timestamp provided by Main 100ms callback. This was introduced to compensated small shifts in execution and program flow shifts (for example during long operation times)
author | ideenmodellierer |
---|---|
date | Sun, 14 Apr 2019 11:43:29 +0200 |
parents | 2b9775f71e30 |
children | a91d99265884 |
comparison
equal
deleted
inserted
replaced
263:a6c0375bc950 | 264:b3685fbada3b |
---|---|
94 | 94 |
95 | 95 |
96 /* Function prototypes -----------------------------------------------*/ | 96 /* Function prototypes -----------------------------------------------*/ |
97 | 97 |
98 void initGlobals(void); | 98 void initGlobals(void); |
99 void reinitGlobals(void); | |
99 | 100 |
100 void scheduleSurfaceMode(void); | 101 void scheduleSurfaceMode(void); |
101 void scheduleDiveMode(void); | 102 void scheduleDiveMode(void); |
102 void scheduleSleepMode(void); | 103 void scheduleSleepMode(void); |
103 void scheduleCompassCalibrationMode(void); | 104 void scheduleCompassCalibrationMode(void); |
107 void scheduleSpecial_Evaluate_DataSendToSlave(void); | 108 void scheduleSpecial_Evaluate_DataSendToSlave(void); |
108 void scheduleUpdateDeviceDataChargerFull(void); | 109 void scheduleUpdateDeviceDataChargerFull(void); |
109 void scheduleUpdateDeviceDataChargerCharging(void); | 110 void scheduleUpdateDeviceDataChargerCharging(void); |
110 | 111 |
111 void Scheduler_Request_sync_with_SPI(uint8_t SyncMethod); | 112 void Scheduler_Request_sync_with_SPI(uint8_t SyncMethod); |
112 void Scheduler_SyncToSPI(void); | 113 void Scheduler_SyncToSPI(uint8_t TXtick); |
113 | 114 |
114 uint8_t scheduleSetButtonResponsiveness(void); | 115 uint8_t scheduleSetButtonResponsiveness(void); |
115 | 116 |
116 void copyBatteryData(void); | 117 void copyBatteryData(void); |
117 | 118 |