forked from OpenEVSE/open_evse
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathplatformio.ini
111 lines (101 loc) · 2.51 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
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
; PlatformIO Project Configuration File
;
; Build options: build flags, source filter, extra scripting
; Upload options: custom port, speed and extra flags
; Library options: dependencies, extra library storages
;
; Please visit documentation for the other options and examples
; http://docs.platformio.org/en/stable/projectconf.html
[platformio]
#default_envs = openevse
src_dir = firmware/open_evse
[common]
lib_deps =
upload_protocol = usbasp
upload_flags = "-e -B0.5"
version = 8.2.0
build_flags =
-D OEV6
-D RELAY_PWM
-D SHOW_DISABLED_TESTS
-D AMMETER
-D RAPI
-D RAPI_SERIAL
-D RAPI_WF
-D RAPI_BTN
-D TIME_LIMIT
-D CHARGE_LIMIT
-D MENNEKES_LOCK
us_build_flags =
${common.build_flags}
-D AUTOSVCLEVEL
eu_build_flags =
${common.build_flags}
-D NO_AUTOSVCLEVEL
-D PERIODIC_LCD_REFRESH_MS=120000UL
-D DEFAULT_CURRENT_CAPACITY_L2=32
-D MAX_CURRENT_CAPACITY_L2=32
# Arduino 1.6.17 - requires Python 2
[env:openevse_1-6-17]
platform = atmelavr@1.4.1
board = openevse
framework = arduino
lib_deps = ${common.lib_deps}
upload_protocol = ${common.upload_protocol}
upload_flags = ${common.upload_flags}
src_build_flags=
${common.us_build_flags}
# Arduino 1.6.23
[env:openevse_1-6-23]
platform = atmelavr@1.15.0
board = openevse
framework = arduino
lib_deps = ${common.lib_deps}
upload_protocol = ${common.upload_protocol}
upload_flags = ${common.upload_flags}
src_build_flags=
${common.us_build_flags}
[env:openevse_1-8-3]
platform = atmelavr@3.4.0
board = openevse
framework = arduino
lib_deps = ${common.lib_deps}
upload_protocol = ${common.upload_protocol}
upload_flags = ${common.upload_flags}
src_build_flags=
${common.us_build_flags}
[env:openevse_latest]
platform = atmelavr
board = openevse
framework = arduino
lib_deps = ${common.lib_deps}
upload_protocol = ${common.upload_protocol}
upload_flags = ${common.upload_flags}
src_build_flags=
${common.us_build_flags}
[env:openevse]
extends = env:openevse_1-8-3
src_build_flags=
${common.us_build_flags}
-D 'VERSION="${common.version}"'
# EU OpenEVSE
[env:openevse_eu]
extends = env:openevse
src_build_flags=
${common.eu_build_flags}
-D 'VERSION="${common.version}.EU"'
# Non-tethered T2 EmonEVSE single-phase
[env:emonevse]
extends = env:openevse
src_build_flags=
${common.eu_build_flags}
-D PP_AUTO_AMPACITY
-D 'VERSION="${common.version}.T2"'
# Non-tethered T2 EmonEVSE three-phase
[env:emonevse_3ph]
extends = env:openevse
src_build_flags=
${common.eu_build_flags}
-D PP_AUTO_AMPACITY
-D THREEPHASE
-D 'VERSION="${common.version}.3P"'