Mercurial > public > ostc4
comparison Small_CPU/Src/scheduler.c @ 928:9b7859554beb Evo_2_23 tip
Cleanup Internal Uart:
The compile switches have been updated to allow GNSS data flow if new GPIO config is available or if GNSS is enabled for the external UART.
author | Ideenmodellierer |
---|---|
date | Tue, 26 Nov 2024 21:30:06 +0100 |
parents | 7c996354b8ac |
children |
comparison
equal
deleted
inserted
replaced
927:908d9a8e8c84 | 928:9b7859554beb |
---|---|
879 /* evaluate compass data at 70 ms, 170 ms, 270 ms,... duration <1ms */ | 879 /* evaluate compass data at 70 ms, 170 ms, 270 ms,... duration <1ms */ |
880 if(ticksdiff >= Scheduler.counterAmbientLight100msec * 100 + 70) | 880 if(ticksdiff >= Scheduler.counterAmbientLight100msec * 100 + 70) |
881 { | 881 { |
882 adc_ambient_light_sensor_get_data(); | 882 adc_ambient_light_sensor_get_data(); |
883 copyAmbientLightData(); | 883 copyAmbientLightData(); |
884 #ifdef ENABLE_GNSS | 884 |
885 uartGnss_ProcessData(); | 885 #if defined ENABLE_GNSS_SUPPORT || defined ENABLE_GPIO_V2 |
886 uartGnss_Control(); | |
887 #endif | |
888 #ifdef ENABLE_GNSS_SUPPORT | |
889 copyGNSSdata(); | 886 copyGNSSdata(); |
890 #endif | 887 #endif |
891 Scheduler.counterAmbientLight100msec++; | 888 Scheduler.counterAmbientLight100msec++; |
892 } | 889 } |
893 | 890 |