find_cygwin . -type f -print0 | xargs -0 dos2unix

firmware
This commit is contained in:
rusefi 2017-03-24 13:41:36 -04:00
parent b25869a6d3
commit 7d30cf8b88
12 changed files with 7027 additions and 7027 deletions

View File

@ -1,5 +1,5 @@
# List of all the board related files. # List of all the board related files.
BOARDSRC = $(PROJECT_DIR)/config/boards/ST_STM32F4/board.c BOARDSRC = $(PROJECT_DIR)/config/boards/ST_STM32F4/board.c
# Required include directories # Required include directories
BOARDINC = $(PROJECT_DIR)/config/boards/ST_STM32F4 BOARDINC = $(PROJECT_DIR)/config/boards/ST_STM32F4

View File

@ -1,3 +1,3 @@
Please do not be afraid of the content of this folder. You would NOT need your own file to start your own engine. Please do not be afraid of the content of this folder. You would NOT need your own file to start your own engine.
See http://rusefi.com/wiki/index.php?title=Manual:Engine_Type See http://rusefi.com/wiki/index.php?title=Manual:Engine_Type

View File

@ -1,13 +1,13 @@
/* /*
* @file fl_protocol.cpp * @file fl_protocol.cpp
* *
* @date Mar 15, 2017 * @date Mar 15, 2017
* @author Andrey Belomutskiy, (c) 2012-2017 * @author Andrey Belomutskiy, (c) 2012-2017
*/ */
#include "fl_protocol.h" #include "fl_protocol.h"
bool isStartOfFLProtocol(uint8_t firstByte) { bool isStartOfFLProtocol(uint8_t firstByte) {
return firstByte == START_TAG; return firstByte == START_TAG;
} }

View File

@ -1,27 +1,27 @@
/* /*
* @file fl_protocol.h * @file fl_protocol.h
* *
* @date Mar 14, 2017 * @date Mar 14, 2017
* @author Andrey Belomutskiy, (c) 2012-2017 * @author Andrey Belomutskiy, (c) 2012-2017
*/ */
#ifndef CONSOLE_FL_BINARY_FT_PROTOCOL_H_ #ifndef CONSOLE_FL_BINARY_FT_PROTOCOL_H_
#define CONSOLE_FL_BINARY_FT_PROTOCOL_H_ #define CONSOLE_FL_BINARY_FT_PROTOCOL_H_
#include "rusefi_types.h" #include "rusefi_types.h"
#define START_TAG 0xAA #define START_TAG 0xAA
#define MAGIC_TAG 0xBB #define MAGIC_TAG 0xBB
#define END_TAG 0xCC #define END_TAG 0xCC
#define FL_Firmware_version 0x0002 #define FL_Firmware_version 0x0002
#define FL_Interface_Version 0x0000 #define FL_Interface_Version 0x0000
#define FL_Compiler_Version 0xEEF2 #define FL_Compiler_Version 0xEEF2
#define FL_Decoder_Name 0xEEEE #define FL_Decoder_Name 0xEEEE
#define FL_Firmware_Build_Date 0xEEF0B #define FL_Firmware_Build_Date 0xEEF0B
#define FL_Max_Packet_Size 0x0004 #define FL_Max_Packet_Size 0x0004
#define FL_Operating_System 0xEEF4 #define FL_Operating_System 0xEEF4
bool isStartOfFLProtocol(uint8_t firstByte); bool isStartOfFLProtocol(uint8_t firstByte);
#endif /* CONSOLE_FL_BINARY_FT_PROTOCOL_H_ */ #endif /* CONSOLE_FL_BINARY_FT_PROTOCOL_H_ */

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

View File

@ -1,43 +1,43 @@
/** /**
* @file engine_sniffer.h * @file engine_sniffer.h
* @brief Dev console wave sniffer * @brief Dev console wave sniffer
* *
* @date Jun 23, 2013 * @date Jun 23, 2013
* @author Andrey Belomutskiy, (c) 2012-2017 * @author Andrey Belomutskiy, (c) 2012-2017
*/ */
#ifndef WAVE_CHART_H_ #ifndef WAVE_CHART_H_
#define WAVE_CHART_H_ #define WAVE_CHART_H_
#include "global.h" #include "global.h"
#if EFI_ENGINE_SNIFFER || defined(__DOXYGEN__) #if EFI_ENGINE_SNIFFER || defined(__DOXYGEN__)
#include "datalogging.h" #include "datalogging.h"
/** /**
* @brief Dev console sniffer data buffer * @brief Dev console sniffer data buffer
*/ */
class WaveChart { class WaveChart {
public: public:
WaveChart(); WaveChart();
void init(); void init();
void addEvent3(const char *name, const char *msg); void addEvent3(const char *name, const char *msg);
void reset(); void reset();
void publishIfFull(); void publishIfFull();
void publish(); void publish();
bool isFull(); bool isFull();
bool isStartedTooLongAgo(); bool isStartedTooLongAgo();
private: private:
Logging logging; Logging logging;
uint32_t counter; uint32_t counter;
efitime_t startTimeNt; efitime_t startTimeNt;
volatile int isInitialized; volatile int isInitialized;
}; };
void initWaveChart(WaveChart *chart); void initWaveChart(WaveChart *chart);
void showWaveChartHistogram(void); void showWaveChartHistogram(void);
void setChartSize(int newSize); void setChartSize(int newSize);
#endif /* EFI_ENGINE_SNIFFER */ #endif /* EFI_ENGINE_SNIFFER */
#endif /* WAVE_CHART_H_ */ #endif /* WAVE_CHART_H_ */

File diff suppressed because it is too large Load Diff

View File

@ -1,29 +1,29 @@
/** /**
* @file lcd_HD44780.h * @file lcd_HD44780.h
* *
* @date 13.12.2013 * @date 13.12.2013
* @author Andrey Belomutskiy, (c) 2012-2017 * @author Andrey Belomutskiy, (c) 2012-2017
*/ */
#ifndef LCD_HD44780_H_ #ifndef LCD_HD44780_H_
#define LCD_HD44780_H_ #define LCD_HD44780_H_
#ifdef __cplusplus #ifdef __cplusplus
extern "C" extern "C"
{ {
#endif /* __cplusplus */ #endif /* __cplusplus */
void lcd_HD44780_init(Logging *sharedLogger); void lcd_HD44780_init(Logging *sharedLogger);
void lcd_HD44780_set_position(uint8_t row, uint8_t column); void lcd_HD44780_set_position(uint8_t row, uint8_t column);
void lcd_HD44780_print_char(char data); void lcd_HD44780_print_char(char data);
void lcd_HD44780_print_string(const char *string); void lcd_HD44780_print_string(const char *string);
int getCurrentHD44780row(void); int getCurrentHD44780row(void);
int getCurrentHD44780column(void); int getCurrentHD44780column(void);
void lcdShowFatalMessage(char *message); void lcdShowFatalMessage(char *message);
#ifdef __cplusplus #ifdef __cplusplus
} }
#endif /* __cplusplus */ #endif /* __cplusplus */
#endif /* LCD_HD44780_H_ */ #endif /* LCD_HD44780_H_ */

File diff suppressed because it is too large Load Diff

View File

@ -1,27 +1,27 @@
/** /**
* @file crc.h * @file crc.h
* *
* @date Sep 20, 2013 * @date Sep 20, 2013
* @author Andrey Belomutskiy, (c) 2012-2017 * @author Andrey Belomutskiy, (c) 2012-2017
*/ */
#ifndef CRC_H_ #ifndef CRC_H_
#define CRC_H_ #define CRC_H_
#include "stdint.h" #include "stdint.h"
typedef unsigned char crc_t; typedef unsigned char crc_t;
#ifdef __cplusplus #ifdef __cplusplus
extern "C" { extern "C" {
#endif /* __cplusplus */ #endif /* __cplusplus */
crc_t calc_crc(const crc_t message[], int nBytes); crc_t calc_crc(const crc_t message[], int nBytes);
uint32_t crc32(const void *buf, uint32_t size); uint32_t crc32(const void *buf, uint32_t size);
uint32_t crc32inc(const void *buf, uint32_t crc, uint32_t size); uint32_t crc32inc(const void *buf, uint32_t crc, uint32_t size);
#ifdef __cplusplus #ifdef __cplusplus
} }
#endif /* __cplusplus */ #endif /* __cplusplus */
#endif /* CRC_H_ */ #endif /* CRC_H_ */