Enable kline on MRE (#5167)
* kline: allow settings override * MRE: enable Kline/LIN interface
This commit is contained in:
parent
e5d2bb89f1
commit
a8ad6764a8
|
@ -31,6 +31,12 @@ DDEFS += $(VAR_DEF_ENGINE_TYPE)
|
|||
# This board can capture SENT
|
||||
DDEFS += -DEFI_SENT_SUPPORT=TRUE
|
||||
|
||||
# This board has LIN/K-line interface
|
||||
DDEFS += -DEFI_KLINE=TRUE
|
||||
DDEFS += -DKLINE_SERIAL_DEVICE_RX=Gpio::D9 -DKLINE_SERIAL_DEVICE_TX=Gpio::D8
|
||||
DDEFS += -DKLINE_SERIAL_DEVICE=SD3
|
||||
DDEFS += -DSTM32_SERIAL_USE_USART3=TRUE
|
||||
|
||||
# We are running on microRusEFI hardware!
|
||||
DDEFS += -DHW_MICRO_RUSEFI=1
|
||||
|
||||
|
|
|
@ -3,7 +3,7 @@
|
|||
#include "hellen_meta.h"
|
||||
|
||||
#ifdef EFI_KLINE
|
||||
static SerialDriver* const klDriver = KLINE_SERIAL_DEVICE;
|
||||
static SerialDriver* const klDriver = &KLINE_SERIAL_DEVICE;
|
||||
static THD_WORKING_AREA(klThreadStack, UTILITY_THREAD_STACK_SIZE);
|
||||
|
||||
static int totalBytes = 0;
|
||||
|
|
|
@ -1,9 +1,15 @@
|
|||
#pragma once
|
||||
|
||||
|
||||
#define KLINE_SERIAL_DEVICE (&SD2)
|
||||
#ifndef KLINE_SERIAL_DEVICE
|
||||
#define KLINE_SERIAL_DEVICE SD2
|
||||
#endif
|
||||
#ifndef KLINE_SERIAL_DEVICE_RX
|
||||
#define KLINE_SERIAL_DEVICE_RX H144_UART2_RX
|
||||
#endif
|
||||
#ifndef KLINE_SERIAL_DEVICE_TX
|
||||
#define KLINE_SERIAL_DEVICE_TX H144_UART2_TX
|
||||
#endif
|
||||
|
||||
// The standard transmission rate
|
||||
#define KLINE_BAUD_RATE 10400
|
||||
|
|
Loading…
Reference in New Issue