mirror of
https://github.com/pascallanger/DIY-Multiprotocol-TX-Module.git
synced 2025-02-04 15:58:12 +00:00
Add module sub-type to signature
Differentiates between the STM32F1 boards.
This commit is contained in:
parent
767d2c079a
commit
f4b19fe33e
@ -48,6 +48,7 @@ Bit(s) Bitmask Option Comment
|
|||||||
11 0x400 MULTI_STATUS Indicates if MULTI_STATUS is defined
|
11 0x400 MULTI_STATUS Indicates if MULTI_STATUS is defined
|
||||||
12 0x800 MULTI_TELEMETRY Indicates if MULTI_TELEMETRY is defined
|
12 0x800 MULTI_TELEMETRY Indicates if MULTI_TELEMETRY is defined
|
||||||
13 0x1000 DEBUG_SERIAL Indicates if DEBUG_SERIAL is defined
|
13 0x1000 DEBUG_SERIAL Indicates if DEBUG_SERIAL is defined
|
||||||
|
14-16 0xE000 Module sub-type Reads as a three-bit value indicating a number from 0-7 which maps to a module sub-type (right-shift 13 bits to read)
|
||||||
|
|
||||||
The 8-byte version number is the version number zero-padded to a fixed width of two-bytes per segment and no separator.
|
The 8-byte version number is the version number zero-padded to a fixed width of two-bytes per segment and no separator.
|
||||||
E.g. 1.2.3.45 becomes 01020345.
|
E.g. 1.2.3.45 becomes 01020345.
|
||||||
@ -60,9 +61,15 @@ OpenTX 2 10
|
|||||||
|
|
||||||
Module types are mapped to the following decimal / binary values:
|
Module types are mapped to the following decimal / binary values:
|
||||||
Module Type Decimal Value Binary Valsue
|
Module Type Decimal Value Binary Valsue
|
||||||
AVR 0 00
|
AVR (Atmega328p) 0 00
|
||||||
STM32 1 01
|
STM32 (F103) 1 01
|
||||||
OrangeRX 2 10
|
OrangeRX (Xmega) 2 10
|
||||||
|
|
||||||
|
Module sub-type is currently used for STM32F103 only and is mapped as follows:
|
||||||
|
Module Type Sub Type Decimal Value Binary Value
|
||||||
|
STM32 (F103) STM32F103CB 0 000
|
||||||
|
STM32 (F103) STM32F103C8 1 001
|
||||||
|
STM32 (F103) T18 5in1 2 010
|
||||||
|
|
||||||
Channel orders are mapped to the following decimal / binary values:
|
Channel orders are mapped to the following decimal / binary values:
|
||||||
Channel Order Decimal Value Binary Value
|
Channel Order Decimal Value Binary Value
|
||||||
@ -109,6 +116,17 @@ RTEA 23 10111
|
|||||||
bool firmwareFlag_DEBUG_SERIAL = true;
|
bool firmwareFlag_DEBUG_SERIAL = true;
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
// STM32 Module sub-type flags
|
||||||
|
#if defined (MCU_STM32F103CB)
|
||||||
|
bool firmwareFlag_MCU_STM32F103CB = true;
|
||||||
|
#endif
|
||||||
|
#if defined (MCU_STM32F103C8)
|
||||||
|
bool firmwareFlag_MCU_STM32F103C8 = true;
|
||||||
|
#endif
|
||||||
|
#if defined (MULTI_5IN1_INTERNAL)
|
||||||
|
bool firmwareFlag_MULTI_5IN1_INTERNAL = true;
|
||||||
|
#endif
|
||||||
|
|
||||||
// Channel order flags
|
// Channel order flags
|
||||||
#if defined (AETR)
|
#if defined (AETR)
|
||||||
bool firmwareFlag_ChannelOrder_AETR = true;
|
bool firmwareFlag_ChannelOrder_AETR = true;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user