diff --git a/firmware/console/fl_binary/fl_protocol.h b/firmware/console/fl_binary/fl_protocol.h new file mode 100644 index 0000000000..e281e9593f --- /dev/null +++ b/firmware/console/fl_binary/fl_protocol.h @@ -0,0 +1,27 @@ +/* + * @file ft_protocol.h + * + * @date Mar 14, 2017 + * @author Andrey Belomutskiy, (c) 2012-2017 + */ + +#ifndef CONSOLE_FL_BINARY_FT_PROTOCOL_H_ +#define CONSOLE_FL_BINARY_FT_PROTOCOL_H_ + +#include "rusefi_types.h" + +#define START_TAG 0xAA +#define MAGIC_TAG 0xBB +#define END_TAG 0xCC + +#define FL_Firmware_version 0x0002 +#define FL_Interface_Version 0x0000 +#define FL_Compiler_Version 0xEEF2 +#define FL_Decoder_Name 0xEEEE +#define FL_Firmware_Build_Date 0xEEF0B +#define FL_Max_Packet_Size 0x0004 +#define FL_Operating_System 0xEEF4 + +bool isStartOfFLProtocol(uint8_t firstByte); + +#endif /* CONSOLE_FL_BINARY_FT_PROTOCOL_H_ */ diff --git a/firmware/console/fl_binary/ft_protocol.h b/firmware/console/fl_binary/ft_protocol.h deleted file mode 100644 index 9bd00b67a9..0000000000 --- a/firmware/console/fl_binary/ft_protocol.h +++ /dev/null @@ -1,15 +0,0 @@ -/* - * @file ft_protocol.h - * - * @date Mar 14, 2017 - * @author Andrey Belomutskiy, (c) 2012-2017 - */ - -#ifndef CONSOLE_FL_BINARY_FT_PROTOCOL_H_ -#define CONSOLE_FL_BINARY_FT_PROTOCOL_H_ - -#define START_TAG 0xAA -#define MAGIC_TAG 0xBB -#define END_TAG 0xCC - -#endif /* CONSOLE_FL_BINARY_FT_PROTOCOL_H_ */