From 14e799343940e9629509e78d6f544f13e2353f08 Mon Sep 17 00:00:00 2001 From: Matthew Kennedy Date: Thu, 21 Jul 2022 14:00:05 -0700 Subject: [PATCH] few pt2001 bits --- Makefile | 4 +++- pt2001/pt2001.mk | 9 +++++++++ pt2001/src/pt2001_memory_map.h | 30 ++++++++++++++++++++++++++++++ 3 files changed, 42 insertions(+), 1 deletion(-) create mode 100644 pt2001/pt2001.mk create mode 100644 pt2001/src/pt2001_memory_map.h diff --git a/Makefile b/Makefile index 7bd411a..7b81291 100644 --- a/Makefile +++ b/Makefile @@ -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. diff --git a/pt2001/pt2001.mk b/pt2001/pt2001.mk new file mode 100644 index 0000000..e0f1f2c --- /dev/null +++ b/pt2001/pt2001.mk @@ -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 \ diff --git a/pt2001/src/pt2001_memory_map.h b/pt2001/src/pt2001_memory_map.h new file mode 100644 index 0000000..effff3e --- /dev/null +++ b/pt2001/src/pt2001_memory_map.h @@ -0,0 +1,30 @@ +/** + * see mc33816/rusefi/readme.md +*/ + +#pragma once + +#include + +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, +};