100 lines
1.9 KiB
C
100 lines
1.9 KiB
C
/**
|
|
* @file boards/Prometheus/efifeatures.h
|
|
*
|
|
* @brief In this header we can override efifeatures.h.
|
|
*
|
|
* @date Apr 22, 2017
|
|
* @author andreika, (c) 2017
|
|
*/
|
|
|
|
#include "../../stm32f4ems/efifeatures.h"
|
|
|
|
#pragma once
|
|
|
|
#undef EFI_RTC
|
|
#define EFI_RTC FALSE
|
|
|
|
#undef EFI_POTENTIOMETER
|
|
#define EFI_POTENTIOMETER FALSE
|
|
|
|
#undef EFI_MAX_31855
|
|
#define EFI_MAX_31855 FALSE
|
|
|
|
#undef EFI_AUX_SERIAL
|
|
#define EFI_AUX_SERIAL FALSE
|
|
|
|
#undef EFI_USB_SERIAL
|
|
#define EFI_USB_SERIAL FALSE
|
|
|
|
#define ADC_CHANNEL_VREF ADC_CHANNEL_IN14
|
|
|
|
#define TS_PRIMARY_UxART_PORT UARTD4
|
|
|
|
#undef EFI_UART_GPS
|
|
#define EFI_UART_GPS FALSE
|
|
|
|
#undef EFI_BLUETOOTH_SETUP
|
|
#define EFI_BLUETOOTH_SETUP TRUE
|
|
|
|
#undef SERIAL_SPEED
|
|
#define SERIAL_SPEED 115200
|
|
|
|
#ifndef BOARD_TLE6240_COUNT
|
|
#define BOARD_TLE6240_COUNT 0
|
|
#endif
|
|
|
|
#ifndef BOARD_MC33972_COUNT
|
|
#define BOARD_MC33972_COUNT 0
|
|
#endif
|
|
|
|
#ifndef BOARD_TLE8888_COUNT
|
|
#define BOARD_TLE8888_COUNT 0
|
|
#endif
|
|
|
|
#ifndef BOARD_MC33810_COUNT
|
|
#define BOARD_MC33810_COUNT 0
|
|
#endif
|
|
|
|
|
|
#undef EFI_CONSOLE_TX_BRAIN_PIN
|
|
#define EFI_CONSOLE_TX_BRAIN_PIN Gpio::A0
|
|
|
|
#undef EFI_CONSOLE_RX_BRAIN_PIN
|
|
#define EFI_CONSOLE_RX_BRAIN_PIN Gpio::A1
|
|
|
|
#undef EFI_CONSOLE_AF
|
|
#define EFI_CONSOLE_AF 8
|
|
|
|
#undef TS_SERIAL_AF
|
|
#define TS_SERIAL_AF 8
|
|
|
|
#undef LED_CRITICAL_ERROR_BRAIN_PIN
|
|
#define LED_CRITICAL_ERROR_BRAIN_PIN Gpio::A13
|
|
#undef LED_ERROR_BRAIN_PIN_MODE
|
|
#define LED_ERROR_BRAIN_PIN_MODE DEFAULT_OUTPUT
|
|
|
|
#undef CONSOLE_MODE_SWITCH_PORT
|
|
#undef CONFIG_RESET_SWITCH_PORT
|
|
|
|
//!!!!!!!!!!!!!!!
|
|
//#undef EFI_INTERNAL_ADC
|
|
//#define EFI_INTERNAL_ADC FALSE
|
|
|
|
#undef ADC_VCC
|
|
#define ADC_VCC 3.275f
|
|
|
|
#undef EFI_MAIN_RELAY_CONTROL
|
|
#define EFI_MAIN_RELAY_CONTROL TRUE
|
|
|
|
#undef EFI_MEMS
|
|
#define EFI_MEMS FALSE
|
|
|
|
#undef EFI_IDLE_PID_CIC
|
|
#define EFI_IDLE_PID_CIC TRUE
|
|
|
|
#define RPM_LOW_THRESHOLD 8 // RPM=8 is an empirical lower sensitivity threshold of MAX9926 for 60-2
|
|
#define NO_RPM_EVENTS_TIMEOUT_SECS 5 // (RPM < 12)
|
|
|
|
#define EFI_NARROW_EGO_AVERAGING TRUE
|
|
|