Mercurial > public > ostc4
comparison Small_CPU/Src/scheduler.c @ 940:4a406e873a95 Evo_2_23 tip
GNSS improvments:
- Introduce alive indicator; Status string will switch between white and grey with every message received from the module
- shorten visibility of "shutting down" string. a busy wait of 1 second was applied in the sleep prepare function. The time is now included in the time needed to prepare the module for low power operation
- make sure GPIO is properly initialized after deep sleep
author | Ideenmodellierer |
---|---|
date | Thu, 12 Dec 2024 21:12:07 +0100 |
parents | d461d9e89e3c |
children |
comparison
equal
deleted
inserted
replaced
939:f41974734268 | 940:4a406e873a95 |
---|---|
1204 scheduleUpdateLifeData(-1); | 1204 scheduleUpdateLifeData(-1); |
1205 clearDecoNow = 0; | 1205 clearDecoNow = 0; |
1206 setButtonsNow = 0; | 1206 setButtonsNow = 0; |
1207 reinitGlobals(); | 1207 reinitGlobals(); |
1208 ReInit_battery_charger_status_pins(); | 1208 ReInit_battery_charger_status_pins(); |
1209 | |
1210 if(deepSleepCntDwn == 0) | |
1211 { | |
1212 GPIO_GNSS_Init(); | |
1213 } | |
1209 } | 1214 } |
1210 | 1215 |
1211 | 1216 |
1212 | 1217 |
1213 /* Private functions ---------------------------------------------------------*/ | 1218 /* Private functions ---------------------------------------------------------*/ |
1769 { | 1774 { |
1770 global.dataSendToMaster.data[0].gnssInfo.fLat = GNSS_Handle.fLat; | 1775 global.dataSendToMaster.data[0].gnssInfo.fLat = GNSS_Handle.fLat; |
1771 global.dataSendToMaster.data[0].gnssInfo.fLon = GNSS_Handle.fLon; | 1776 global.dataSendToMaster.data[0].gnssInfo.fLon = GNSS_Handle.fLon; |
1772 global.dataSendToMaster.data[0].gnssInfo.fixType = GNSS_Handle.fixType; | 1777 global.dataSendToMaster.data[0].gnssInfo.fixType = GNSS_Handle.fixType; |
1773 global.dataSendToMaster.data[0].gnssInfo.numSat = GNSS_Handle.numSat; | 1778 global.dataSendToMaster.data[0].gnssInfo.numSat = GNSS_Handle.numSat; |
1779 global.dataSendToMaster.data[0].gnssInfo.alive = GNSS_Handle.alive; | |
1780 | |
1774 memcpy(&global.dataSendToMaster.data[0].gnssInfo.signalQual,&GNSS_Handle.statSat, sizeof(GNSS_Handle.statSat)); | 1781 memcpy(&global.dataSendToMaster.data[0].gnssInfo.signalQual,&GNSS_Handle.statSat, sizeof(GNSS_Handle.statSat)); |
1775 } | 1782 } |
1776 | 1783 |
1777 | 1784 |
1778 typedef enum | 1785 typedef enum |