only:hellen-112-17
This commit is contained in:
parent
7c12648491
commit
80fa13a125
|
@ -17,5 +17,6 @@ DDEFS += -DFIRMWARE_ID=\"hellen-112-17\" $(VAR_DEF_ENGINE_TYPE)
|
|||
|
||||
DDEFS += -DSHORT_BOARD_NAME=hellen-112-17
|
||||
DDEFS += -DHW_HELLEN_K=TRUE
|
||||
DDEFS += -DHELLEN_BOARD_ID_DEBUG
|
||||
|
||||
include $(BOARDS_DIR)/hellen/hellen-common100.mk
|
||||
|
|
|
@ -256,6 +256,7 @@ bool HellenBoardIdFinder<NumPins>::measureChargingTimes(int i, float & Tc1_us, f
|
|||
// 7. calculate the second charge time
|
||||
Tc2_us = NT2USF(t4 - t3);
|
||||
|
||||
float Td_us = NT2USF(Td_nt);
|
||||
#ifdef HELLEN_BOARD_ID_DEBUG
|
||||
efitick_t nowNt4 = getTimeNowNt();
|
||||
efiPrintf("* dTime2-1 = %d", (int)(t2 - t1));
|
||||
|
@ -266,7 +267,6 @@ bool HellenBoardIdFinder<NumPins>::measureChargingTimes(int i, float & Tc1_us, f
|
|||
|
||||
// sanity checks
|
||||
if (pinState != 0) {
|
||||
float Td_us = NT2USF(Td_nt);
|
||||
efiPrintf("* Board detection error! (Td=%f is too small)", Td_us);
|
||||
return false;
|
||||
}
|
||||
|
|
|
@ -67,7 +67,7 @@ void configureHellenCanTerminator() {
|
|||
}
|
||||
|
||||
// this should be called before setHellenXXXLedPins()
|
||||
void detectHellenMcuType() {
|
||||
static void detectHellenMcuType() {
|
||||
// we test the red LED1 pin because the red LED used has the smallest voltage drop,
|
||||
// and thus can be detected more accurately
|
||||
static const brain_pin_e led1Pins[2] = {
|
||||
|
@ -101,11 +101,10 @@ void detectHellenMcuType() {
|
|||
efiPrintf("Hellen board pin states = %d %d", padState[0], padState[1]);
|
||||
if (padState[0] && !padState[1]) {
|
||||
efiPrintf("* Hellen 176-pin mcu detected!");
|
||||
}
|
||||
else if (!padState[0] && padState[1]) {
|
||||
} else if (!padState[0] && padState[1]) {
|
||||
efiPrintf("* Hellen 144-pin mcu detected!");
|
||||
} else {
|
||||
efiPrintf("* Cannot detect Hellen mcu module!");
|
||||
efiPrintf("* Cannot figure if legacy 144 or 176 Hellen mcu module!");
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue