few pt2001 bits

This commit is contained in:
Matthew Kennedy 2022-07-21 14:00:05 -07:00
parent 112b0ec766
commit 14e7993439
3 changed files with 42 additions and 1 deletions

View File

@ -8,10 +8,12 @@ PROJECT_DIR = .
# Imported source files and paths
RUSEFI_LIB = .
include $(RUSEFI_LIB)/util/util.mk
include $(RUSEFI_LIB)/pt2001/pt2001.mk
# C sources that can be compiled in ARM or THUMB mode depending on the global
# setting.
CSRC +=
CSRC += \
$(RUSEFI_LIB_C) \
# C++ sources that can be compiled in ARM or THUMB mode depending on the global
# setting.

9
pt2001/pt2001.mk Normal file
View File

@ -0,0 +1,9 @@
RUSEFI_LIB_INC += \
$(RUSEFI_LIB)/pt2001/include \
$(RUSEFI_LIB)/pt2001/project/rusefi/sample_code \
RUSEFI_LIB_C += \
# $(RUSEFI_LIB)/pt2001/project/rusefi/sample_code/PT2001_LoadData.c \
RUSEFI_LIB_CPP += \
# $(RUSEFI_LIB)/pt2001/src/pt2001.cpp \

View File

@ -0,0 +1,30 @@
/**
* see mc33816/rusefi/readme.md
*/
#pragma once
#include <PT2001_dram.h>
enum class MC33816Mem {
// see dram1.def values
Iboost = PT2001_D1_Iboost,
Ipeak = PT2001_D1_Ipeak,
Ihold = PT2001_D1_Ihold,
Tpeak_off = PT2001_D1_Tpeak_off,
Tpeak_tot = PT2001_D1_Tpeak_tot,
Tbypass = PT2001_D1_Tbypass,
Thold_off = PT2001_D1_Thold_off,
Thold_tot = PT2001_D1_Thold_tot,
Tboost_min = PT2001_D1_Tboost_min,
Tboost_max = PT2001_D1_Tboost_max,
// see dram2.def values, base 64 for channel 2
Vboost_high = PT2001_D2_Vboost_high,
Vboost_low = PT2001_D2_Vboost_low,
Isense4_high = PT2001_D2_Isense4_high,
Isense4_low = PT2001_D2_Isense4_low,
HPFP_Ipeak = PT2001_D2_PCV_Ipeak,
HPFP_Ihold = PT2001_D2_PCV_Ihold,
HPFP_Thold_off = PT2001_D2_PCV_Thold_off,
HPFP_Thold_tot = PT2001_D2_PCV_Thold_tot,
};