forked from lincomatic/open_evse
-
Notifications
You must be signed in to change notification settings - Fork 80
/
Copy pathplatformio.ini
109 lines (100 loc) · 2.45 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
; 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.3
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
-D HEARTBEAT_SUPERVISION
us_build_flags =
${common.build_flags}
-D AUTOSVCLEVEL
#-D BOOTLOCK
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
-D OVERCURRENT_THRESHOLD=5
-D OVERCURRENT_TIMEOUT=10000UL
-D DEFAULT_SERVICE_LEVEL=2
[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}
build_src_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}
build_src_flags=
${common.us_build_flags}
[env:openevse]
extends = env:openevse_1-8-3
build_src_flags=
${common.us_build_flags}
-D 'VERSION="${common.version}"'
# v6 CGMI OpenEVSE
[env:openevse_v6]
extends = env:openevse
build_src_flags=
${common.us_build_flags}
-D ENABLE_CGMI
-D NO_AUTOSVCLEVEL
-D DEFAULT_SERVICE_LEVEL=2
#-D BTN_MENU
#-D RTC
-D 'VERSION="${common.version}.CGMI"'
# EU OpenEVSE
[env:openevse_eu]
extends = env:openevse
build_src_flags=
${common.eu_build_flags}
-D MV_FOR_L2=230000L
-D 'VERSION="${common.version}.EU"'
# Non-tethered T2 EmonEVSE single-phase
[env:emonevse]
extends = env:openevse
build_src_flags=
${common.eu_build_flags}
-D PP_AUTO_AMPACITY
-D MV_FOR_L2=230000L
-D 'VERSION="${common.version}.T2"'
# Non-tethered T2 EmonEVSE three-phase
# Deprecated, unneeded with wifi fw > 4.1.7
; [env:emonevse_3ph]
; extends = env:openevse
; build_src_flags=
; ${common.eu_build_flags}
; -D PP_AUTO_AMPACITY
; -D THREEPHASE
; -D 'VERSION="${common.version}.3P"'