Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Sent #21

Draft
wants to merge 5 commits into
base: master
Choose a base branch
from
Draft

Sent #21

Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions firmware/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -113,6 +113,7 @@ endif
# Configure libfirmware Paths/Includes
RUSEFI_LIB = libfirmware
include $(RUSEFI_LIB)/util/util.mk
include $(RUSEFI_LIB)/sent/sent.mk

# Licensing files.
include $(CHIBIOS)/os/license/license.mk
Expand Down Expand Up @@ -151,6 +152,7 @@ CPPSRC = $(ALLCPPSRC) \
can.cpp \
can_helper.cpp \
can_aemnet.cpp \
sent.cpp \
fault.cpp \
lambda_conversion.cpp \
pwm.cpp \
Expand Down
2 changes: 1 addition & 1 deletion firmware/boards/f1_dual_rev1/chconf.h
Original file line number Diff line number Diff line change
Expand Up @@ -343,7 +343,7 @@ typedef int pid_t;
* @note Requires @p CH_CFG_USE_SEMAPHORES.
*/
#if !defined(CH_CFG_USE_MAILBOXES)
#define CH_CFG_USE_MAILBOXES FALSE
#define CH_CFG_USE_MAILBOXES TRUE
#endif

/**
Expand Down
2 changes: 1 addition & 1 deletion firmware/boards/f1_dual_rev1/halconf.h
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@
* @brief Enables the ICU subsystem.
*/
#if !defined(HAL_USE_ICU) || defined(__DOXYGEN__)
#define HAL_USE_ICU FALSE
#define HAL_USE_ICU TRUE
#endif

/**
Expand Down
4 changes: 2 additions & 2 deletions firmware/boards/f1_dual_rev1/mcuconf.h
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,7 @@
*/
#define STM32_ICU_USE_TIM1 FALSE
#define STM32_ICU_USE_TIM2 FALSE
#define STM32_ICU_USE_TIM3 FALSE
#define STM32_ICU_USE_TIM3 TRUE
#define STM32_ICU_USE_TIM4 FALSE
#define STM32_ICU_USE_TIM5 FALSE
#define STM32_ICU_USE_TIM8 FALSE
Expand Down Expand Up @@ -194,7 +194,7 @@
* ST driver system settings.
*/
#define STM32_ST_IRQ_PRIORITY 8
#define STM32_ST_USE_TIMER 3
#define STM32_ST_USE_TIMER 2

/*
* UART driver system settings.
Expand Down
5 changes: 5 additions & 0 deletions firmware/boards/f1_dual_rev1/wideband_board_config.h
Original file line number Diff line number Diff line change
Expand Up @@ -95,3 +95,8 @@
// Indication: per channel status LED + communication LED
// *******************************
#define ADVANCED_INDICATION

// *******************************
// SENT protocol receiver on analog inputs
// *******************************
#define SENT_INPUT_COUNT 1 // Number of sent channels
2 changes: 1 addition & 1 deletion firmware/libfirmware
Submodule libfirmware updated 61 files
+15 −6 .github/workflows/tests-windows.yaml
+2 −0 .gitignore
+5 −1 Makefile
+73 −0 board_id/boards_dictionary.h
+65 −0 board_id/boards_id.h
+4 −0 board_id/qc_stim_meta.h
+1 −0 board_id/readme.md
+51 −1 can/can_common.h
+1 −1 gmock-all.cpp
+1 −1 gtest-all.cpp
+3 −0 mock/global.h
+23 −0 mock/lib-time-mocks.cpp
+36 −1 pt2001/include/rusefi/pt2001.h
+23 −0 pt2001/project/rusefi/Actuator/inj2.xml
+23 −0 pt2001/project/rusefi/Actuator/inj3.xml
+23 −0 pt2001/project/rusefi/Actuator/inj4.xml
+121 −0 pt2001/project/rusefi/Feedbacks/dcdc_voltage.xml
+237 −0 pt2001/project/rusefi/Logic_Wave/wave_list.do
+8 −0 pt2001/project/rusefi/MicrocodeCh1/ch1.psc
+5 −5 pt2001/project/rusefi/Registers/ch1_config_reg.bin
+1 −1 pt2001/project/rusefi/Registers/dram2.bin
+3 −3 pt2001/project/rusefi/Registers/io_config_reg.bin
+6 −0 pt2001/project/rusefi/Stimulus/stim.xml
+21 −27 pt2001/project/rusefi/labels.xml
+16 −13 pt2001/project/rusefi/project.xml
+26 −25 pt2001/project/rusefi/sample_code/PT2001_LoadData.c
+9 −9 pt2001/project/rusefi/sample_code/PT2001_LoadData.h
+1 −1 pt2001/project/rusefi/sample_code/PT2001_dram.h
+62 −16 pt2001/src/pt2001.cpp
+5 −0 sent/include/sent_canbus_protocol.h
+136 −0 sent/include/sent_decoder.h
+62 −0 sent/include/sent_gm_fuel_sensor.h
+5 −0 sent/sent.mk
+556 −0 sent/src/sent_decoder.cpp
+2 −0 stm32-util/mcu-util.h
+7 −0 util/include/rusefi/arrays.h
+179 −0 util/include/rusefi/containers/cyclic_buffer.h
+156 −0 util/include/rusefi/containers/fifo_buffer.h
+4 −0 util/include/rusefi/critical_error.h
+23 −0 util/include/rusefi/efistringutil.h
+95 −0 util/include/rusefi/endian.h
+85 −0 util/include/rusefi/expected.h
+1 −1 util/include/rusefi/fragments.h
+8 −8 util/include/rusefi/interpolation.h
+0 −14 util/include/rusefi/isnan.h
+43 −0 util/include/rusefi/manifest.h
+25 −2 util/include/rusefi/math.h
+22 −0 util/include/rusefi/rusefi_time_math.h
+60 −0 util/include/rusefi/rusefi_time_types.h
+38 −0 util/include/rusefi/rusefi_time_wraparound.h
+48 −0 util/include/rusefi/timer.h
+9 −0 util/include/rusefi/true_false.h
+126 −0 util/src/efistringutil.cpp
+3 −2 util/src/fragments.cpp
+16 −8 util/src/math.cpp
+83 −0 util/src/timer.cpp
+37 −0 util/test/test_cyclic_buffer.cpp
+8 −0 util/test/test_efistringutil.cpp
+11 −0 util/test/test_manifest.cpp
+69 −0 util/test/test_wraparound.cpp
+6 −1 util/util.mk
5 changes: 5 additions & 0 deletions firmware/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
#include "port.h"
#include "tunerstudio.h"
#include "indication.h"
#include "sent.h"

#include "wideband_config.h"

Expand Down Expand Up @@ -46,6 +47,10 @@ int main() {
InitUart();
InitIndication();

#if (SENT_INPUT_COUNT > 0)
initSent();
#endif

#if (EGT_CHANNELS > 0)
StartEgt();
#endif
Expand Down
Loading
Loading