[X10 Express] Fixes

- Introduction of -DPCBREV=EXPRESS
- X10 Express external pulses all good
Caution: need to check if no regression on X10 STD
This commit is contained in:
Bertrand Songis
2019-08-14 12:34:44 +02:00
parent fc0e7294a9
commit fad8dd1926
9 changed files with 94 additions and 126 deletions
+3 -2
View File
@@ -61,7 +61,8 @@ uint8_t getRequiredProtocol(uint8_t module)
break;
}
#endif
// no break
protocol = PROTOCOL_CHANNELS_PXX1_PULSES;
break;
case MODULE_TYPE_R9M_PXX1:
protocol = PROTOCOL_CHANNELS_PXX1_PULSES;
@@ -216,7 +217,7 @@ void setupPulsesExternalModule(uint8_t protocol)
break;
#endif
#if defined(PXX1) && defined(EXTMODULE_USART)
#if defined(PXX1) && defined(HARDWARE_EXTERNAL_MODULE_SIZE_SML)
case PROTOCOL_CHANNELS_PXX1_SERIAL:
extmodulePulsesData.pxx_uart.setupFrame(EXTERNAL_MODULE);
scheduleNextMixerCalculation(EXTERNAL_MODULE, EXTMODULE_PXX1_SERIAL_PERIOD);
+1 -1
View File
@@ -281,7 +281,7 @@ union InternalModulePulsesData {
union ExternalModulePulsesData {
#if defined(PXX1)
#if defined(EXTMODULE_USART)
#if defined(HARDWARE_EXTERNAL_MODULE_SIZE_SML)
UartPxx1Pulses pxx_uart;
#endif
#if defined(PPM_PIN_SERIAL)
+5 -5
View File
@@ -23,14 +23,14 @@
#include <inttypes.h>
#if defined(PCBX12S) && PCBREV < 13
#define pulse_duration_t uint32_t
#define trainer_pulse_duration_t uint16_t
#if defined(EXTMODULE_TIMER_32BITS)
typedef uint32_t pulse_duration_t;
#else
#define pulse_duration_t uint16_t
#define trainer_pulse_duration_t uint16_t
typedef uint16_t pulse_duration_t;
#endif
typedef uint16_t trainer_pulse_duration_t;
template <class T, int SIZE>
class DataBuffer {
public: