Skip to content

Commit 6f81d6b

Browse files
committed
2 parents 39325be + 6e8f524 commit 6f81d6b

33 files changed

+1872
-124
lines changed

.github/workflows/divert_sim.yaml

Lines changed: 69 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,69 @@
1+
# yaml-language-server: $schema=https://json.schemastore.org/github-workflow.json
2+
3+
name: Build OpenEVSE divert simulator
4+
5+
permissions:
6+
contents: write
7+
8+
on:
9+
push:
10+
branches:
11+
- master
12+
pull_request:
13+
14+
jobs:
15+
build:
16+
runs-on: ubuntu-latest
17+
18+
steps:
19+
- uses: actions/checkout@v3
20+
with:
21+
path: OpenEVSE_WiFi
22+
23+
- uses: actions/checkout@v3
24+
with:
25+
repository: JeremyPoulter/MicroDebug
26+
path: MicroDebug
27+
28+
- uses: actions/checkout@v3
29+
with:
30+
repository: JeremyPoulter/MicroTasks
31+
path: MicroTasks
32+
33+
- uses: actions/checkout@v3
34+
with:
35+
repository: JeremyPoulter/StreamSpy
36+
path: StreamSpy
37+
38+
- uses: actions/checkout@v3
39+
with:
40+
repository: JeremyPoulter/ConfigJson
41+
path: ConfigJson
42+
43+
- uses: actions/checkout@v3
44+
with:
45+
repository: bblanchon/ArduinoJson
46+
path: ArduinoJson
47+
ref: v6.20.1
48+
49+
- uses: actions/checkout@v3
50+
with:
51+
repository: JeremyPoulter/OpenEVSE_Lib
52+
path: OpenEVSE_Lib
53+
54+
- uses: actions/checkout@v3
55+
with:
56+
repository: JeremyPoulter/EpoxyDuino
57+
path: EpoxyDuino
58+
59+
- uses: actions/checkout@v3
60+
with:
61+
repository: JeremyPoulter/ESPAL
62+
path: ESPAL
63+
64+
- uses: ammaraskar/gcc-problem-matcher@master
65+
66+
- name: Build the simulator
67+
run: |
68+
cd OpenEVSE_WiFi/divert_sim
69+
make -j

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -90,3 +90,5 @@ lib/StreamSpy
9090
lib/MicroTasks
9191

9292
*.bin
93+
divert_sim/epoxyfsdata
94+
divert_sim/epoxyeepromdata

divert_sim/.vscode/launch.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010
"request": "launch",
1111
"program": "${workspaceFolder}/divert_sim",
1212
"args": [
13+
"-c", "data/test_config.json",
1314
"<", "${workspaceFolder}/data/day1.csv"
1415
],
1516
"stopAtEntry": false,
@@ -100,4 +101,4 @@
100101
"miDebuggerPath": "/usr/bin/gdb"
101102
}
102103
]
103-
}
104+
}

divert_sim/EEPROM.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
#include <EpoxyEepromEsp.h>
2+
#define EEPROM EpoxyEepromEspInstance

divert_sim/FakeDuino/Arduino.h

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,4 +36,7 @@
3636
extern void setup(void);
3737
extern void loop(void);
3838

39+
#define interrupts()
40+
#define noInterrupts()
41+
3942
#endif

0 commit comments

Comments
 (0)