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.
BOARDSRC = $(PROJECT_DIR)/config/boards/ST_STM32F4/board.c
# Required include directories
BOARDINC = $(PROJECT_DIR)/config/boards/ST_STM32F4
# List of all the board related files.
BOARDSRC = $(PROJECT_DIR)/config/boards/ST_STM32F4/board.c
# Required include directories
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

View File

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

View File

@ -1,27 +1,27 @@
/*
* @file fl_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_ */
/*
* @file fl_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_ */

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

File diff suppressed because it is too large Load Diff

View File

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

File diff suppressed because it is too large Load Diff

View File

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