-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathplatformio.ini
78 lines (69 loc) · 2.1 KB
/
platformio.ini
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
[common]
lib_deps_shared =
Nanopb
https://github.com/hytech-racing/shared_firmware_types.git
https://github.com/hytech-racing/shared_firmware_interfaces.git#0075f82064c3d6eede407b156f3fa7cbaa6a1d58
https://github.com/hytech-racing/HT_proto/releases/download/2025-02-21T18_32_07/hytech_msgs_pb_lib.tar.gz
Embedded Template Library@^20.39.4
; Teensy41 Environment. This environment is the primary environment for uploading code to the car.
; * Build to verify the on-car software.
; * UPLOAD to compile and upload on-car software.
; * TEST is not yet configured.
[platformio]
default_envs = teensy41
; Test Systems Environment. This is only for compiling and uploading the hardware-abstracted code.
; * BUILD to verify the SYSTEMS compile.
; * DO NOT UPLOAD. This is a test-only environment.
; * TEST to run all unit tests in test_systems on the existing system code.
[env:test_systems_env]
platform = native
test_framework = googletest
; test_build_src = yes
build_src_filter =
-<ACU_Globals.cpp>
-<ACU_InterfaceTasks.cpp>
-<main.cpp>
+<ACU_Constants.cpp>
+<../test/test_systems/test_systems.cpp>
build_unflags = -std=gnu++11
build_flags =
-std=c++17
-g
-D TESTING_SYSTEMS
lib_ignore =
interfaces
test_ignore=
test_interfaces*
lib_deps =
google/googletest@^1.15.2
${common.lib_deps_shared}
blemasle/MCP23017@^2.0.0
[env:teensy41]
test_framework=googletest
; including only the current main file for compiling to keep old main still around for now while
; refactoring
build_src_filter =
+<**/*.cpp>
-<main.cpp>
build_unflags = -std=gnu++11
build_flags =
-std=c++17
-D TEENSY_OPT_SMALLEST_CODE
-I include
check_tool = clangtidy
check_src_filters =
+<include/*>
+<lib/*>
+<src/*>
platform = teensy
board=teensy41
framework=arduino
monitor_speed = 115200
upload_protocol = teensy-cli
lib_deps=
${common.lib_deps_shared}
https://github.com/ssilverman/QNEthernet#v0.26.0
https://github.com/hytech-racing/HT_CAN/releases/download/133/can_lib.tar.gz
https://github.com/hytech-racing/HT_SCHED.git#299cf562678058aa3fa1cb1ec8952b4835454208
arkhipenko/TaskScheduler@^3.8.5
SPI