rusefi/firmware
Scott Smith 344c9073e2
Start the process of using a global engine ptr for unit tests. (#3551)
* Start the process of using a global engine ptr for unit tests.

Passing around the engine, config, and persistent state wasn't buying anything.  Instead, use
EngineTestHelper(Base) to correctly set and clear the global variables.  Add a dummy check in
case some test tries to set them manually.

* Fix OSX build

* Adapt PR to recently added code.
2021-11-16 00:23:14 -05:00
..
ChibiOS@8bae576fdd enable ethernet on atlas (#3348) 2021-10-16 12:31:53 -04:00
ChibiOS-Contrib@fe3cdf8314
bootloader (void) -> () (#3550) 2021-11-15 13:02:34 +01:00
config Auto-generated configs and docs 2021-11-16 02:53:15 +00:00
console random refactoring: trigger central encapsulation 2021-11-15 20:22:05 -05:00
controllers Start the process of using a global engine ptr for unit tests. (#3551) 2021-11-16 00:23:14 -05:00
development (void) -> () (#3550) 2021-11-15 13:02:34 +01:00
docs
ext OpenBLT: add as submodule under firmware/ext (#3432) 2021-10-31 14:46:28 -04:00
ext_algo
hw_layer (void) -> () (#3550) 2021-11-15 13:02:34 +01:00
init less macro, more c++ (#3549) 2021-11-15 12:44:40 +01:00
integration Not all launch control options are used #3554 2021-11-15 21:13:01 -05:00
pch better pch usage and gmock constructors (#3426) 2021-10-30 20:31:09 -04:00
tunerstudio Auto-generated configs and docs 2021-11-16 02:53:15 +00:00
util refactoring launch 2021-11-15 19:34:42 -05:00
.cproject
.gitattributes
.gitignore set up precompiled header (#2971) 2021-07-25 21:23:23 -04:00
.project
CHANGELOG.md Knock retard #3396 2021-11-15 21:21:45 -05:00
Doxyfile
DoxygenLayout.xml
Makefile Print BSS and RAM4 totals at the end of make. (#3527) 2021-11-11 11:51:35 -05:00
build-notes.txt docs 2021-07-09 13:29:03 -04:00
clean.bat
clean.sh set up precompiled header (#2971) 2021-07-25 21:23:23 -04:00
clean_build.bat
clean_compile_two_versions.bat
clean_compile_two_versions.sh
compile.bat
compile_and_program.bat
cov_config.bat
cov_run.bat
coverity.yml
dump.bat
dump_release.bat
egt2can.cpp more graceful chibios assertion failure (#2859) 2021-07-05 18:18:58 -04:00
exception.txt
flash.bat
flash_dfu.bat Better Windows build-in DFU #3338 2021-10-23 15:17:51 -04:00
flash_dfu.sh
flash_erase407.bat
flash_erase407.sh
flash_erase767.bat
flash_erase_dfu.bat maybe lua freezes proteus h7 after 7 seconds of run #3539 2021-11-12 12:45:53 -05:00
flash_openocd407.bat
flash_openocd407.sh
flash_openocd767.bat
flash_openocd_h7.bat
flash_reboot_dfu.bat Better Windows build-in DFU #3338 2021-10-23 15:47:39 -04:00
flash_release.bat
gen_config.bat
gen_config.sh hellen88bmw 2021-10-11 20:58:10 -04:00
gen_config_board.bat
gen_config_board.sh placing all logs into same folder 2021-10-23 20:18:09 -04:00
gen_config_common.sh generate java enum from C enum? generate both C and java from yaml? #2102 2021-10-23 21:56:00 -04:00
gen_config_default.sh gen_config.sh code duplication fix #2451 2021-07-30 22:00:35 -04:00
gen_enum_to_string.bat typos 2021-07-30 16:28:27 -04:00
gen_enum_to_string.sh generate java enum from C enum? generate both C and java from yaml? #2102 2021-10-23 23:21:37 -04:00
gen_firing_order.bat
gen_fsio_example.bat
gen_fsio_example_reverse.bat
gen_live_documentation.bat
gen_live_documentation.sh Whatever we call it, no matter how we do it - we need live data / remote view into rusEFI actual state #3353 2021-10-30 21:45:46 -04:00
gen_live_documentation_one_file.sh placing all logs into same folder 2021-10-23 20:18:09 -04:00
gen_ptrace_enums.bat Feature 3014 migrating to gradle (#3079) 2021-07-30 08:15:32 -04:00
gen_signature.sh simplify signature.h generation (#3480) 2021-11-06 23:19:53 -04:00
gen_system_fsio.bat
gen_trigger_images.bat
generate_docs.bat
generate_memory_usage_report.bat
generate_memory_usage_report.sh this one is for Scott 2021-11-08 19:02:34 -05:00
get_performance_trace.bat
global.h
globalaccess.h
kill_for_coverity.c
license.txt
main.cpp yet more pch (#3068) 2021-08-03 22:05:01 -04:00
main_hardfault.c
make4.bat
openblt.mk Openblt (#3430) 2021-11-05 19:28:55 -04:00
os_access.h trigger signal debug pins - logic level output #2959 2021-07-15 01:28:44 -04:00
readme.md docs 2021-07-09 13:29:03 -04:00
reboot_ecu.bat
run_hw_test.bat
rusefi.cpp (void) -> () (#3550) 2021-11-15 13:02:34 +01:00
rusefi.h (void) -> () (#3550) 2021-11-15 13:02:34 +01:00
rusefi.mk helping build? 2021-07-05 10:57:40 -04:00
rusefi_pch.mk Compile each project's PCH to a separate file to reduce developer friction. (#3505) 2021-11-08 15:52:58 -05:00
rusefi_rules.mk
send_command.bat maybe lua freezes proteus h7 after 7 seconds of run #3539 2021-11-12 12:51:05 -05:00
setup_linux_environment.sh
svnversion.h poke 2021-05-24 09:18:14 -04:00
update_version.bat
update_version.sh
version_check.h

readme.md

Doxygen

Q&A on source code

See also ../unit_tests

This directory contains the source code for the RusEFI firmware.

The ideal is that typical end users should be able to use pre-built firmware. They should not need to modify or even rebuild from the source code for basic use, but building from the source code provides the opportunity for optimization, supporting unexpected engine configurations, and specialized enhancements.

TL;DR

make PROJECT_BOARD=microrusefi PROJECT_CPU=ARCH_STM32F4

Environment

Rebuilding from source code requires this firmware, a modern C/C++ compiler for embedded ARM systems, and a platform that supports 'make' based builds.

See setup_linux_environment.sh

While many compilers have the potential to work, we suggest using the official ARM version of GCC available at launchpad.net.

Linux and MacOS systems should have the software development tools, primarily 'make', pre-installed or readily installed. MS-Windows requires selecting and installing a Unix-compatible system environment.

Note that the developers are volunteers, with varied motivations. These motivations often include using leading-edge language and build system concepts, requiring recent versions of tools. Should you encounter build problems, review the latest version of this document.