Mercurial > public > ostc4
comparison Discovery/Src/data_exchange_main.c @ 839:061174d88af9 Evo_2_23
Code cleanup: UART protocol definitions
In the first external interface implementation the discovery part took care for the uart protocol selection. Since the introduction of the automatic detection the protocol handling has been moved into the RTE. However the definitions were still in the in the exchange header (Discovery <=> RTE). To avoid confusions the definitions have been moved into RTE scope only.
author | Ideenmodellierer |
---|---|
date | Sun, 07 Jan 2024 21:20:15 +0100 |
parents | da632300e7d4 |
children | c3dd461ca3f9 |
comparison
equal
deleted
inserted
replaced
838:aed39d19269c | 839:061174d88af9 |
---|---|
421 | 421 |
422 if(SensorActive[SENSOR_ANALOG]) | 422 if(SensorActive[SENSOR_ANALOG]) |
423 { | 423 { |
424 externalInterface_Cmd |= EXT_INTERFACE_ADC_ON | EXT_INTERFACE_33V_ON; | 424 externalInterface_Cmd |= EXT_INTERFACE_ADC_ON | EXT_INTERFACE_33V_ON; |
425 } | 425 } |
426 if(SensorActive[SENSOR_DIGO2]) | 426 if((SensorActive[SENSOR_DIGO2]) || (SensorActive[SENSOR_CO2])) |
427 { | 427 { |
428 externalInterface_Cmd |= EXT_INTERFACE_33V_ON | EXT_INTERFACE_UART_O2; | 428 externalInterface_Cmd |= EXT_INTERFACE_33V_ON; |
429 } | |
430 else if(SensorActive[SENSOR_CO2]) /* TODO: at the moment only one serial sensor is supported => else condition. to be changed once multiplexing is available */ | |
431 { | |
432 externalInterface_Cmd |= EXT_INTERFACE_33V_ON | EXT_INTERFACE_UART_CO2; /* CO2 sensor has to be activated via auto detection */ | |
433 } | 429 } |
434 | 430 |
435 #ifdef ENABLE_SENTINEL_MODE | 431 #ifdef ENABLE_SENTINEL_MODE |
436 if(SensorActive[SENSOR_SENTINEL]) | 432 if(SensorActive[SENSOR_SENTINEL]) |
437 { | 433 { |