-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
currently only for esp32/s2/s3/c3
- Loading branch information
Showing
7 changed files
with
103 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
{ | ||
"version": 1, | ||
"author": "Uri Shaked", | ||
"editor": "wokwi", | ||
"parts": [ | ||
{ | ||
"type": "board-esp32-devkit-c-v4", | ||
"id": "esp", | ||
"top": 0, | ||
"left": 0, | ||
"attrs": { "cpuFrequency": "16" } | ||
} | ||
], | ||
"connections": [ [ "esp:TX", "$serialMonitor:RX", "", [] ], [ "esp:RX", "$serialMonitor:TX", "", [] ] ], | ||
"serialMonitor": { "display": "terminal" }, | ||
"dependencies": {} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
{ | ||
"version": 1, | ||
"author": "Uri Shaked", | ||
"editor": "wokwi", | ||
"parts": [ | ||
{ | ||
"type": "board-esp32-c3-devkitm-1", | ||
"id": "esp", | ||
"top": -0.3, | ||
"left": -42.18, | ||
"attrs": { "cpuFrequency": "16" } | ||
} | ||
], | ||
"connections": [ [ "esp:TX", "$serialMonitor:RX", "", [] ], [ "esp:RX", "$serialMonitor:TX", "", [] ] ], | ||
"dependencies": {} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
{ | ||
"version": 1, | ||
"author": "Uri Shaked", | ||
"editor": "wokwi", | ||
"parts": [ | ||
{ | ||
"type": "board-esp32-s2-devkitm-1", | ||
"id": "esp", | ||
"top": -13.91, | ||
"left": 4.57, | ||
"attrs": { "cpuFrequency": "16" } | ||
} | ||
], | ||
"connections": [ [ "esp:TX", "$serialMonitor:RX", "", [] ], [ "esp:RX", "$serialMonitor:TX", "", [] ] ], | ||
"dependencies": {} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
{ | ||
"version": 1, | ||
"author": "Uri Shaked", | ||
"editor": "wokwi", | ||
"parts": [ | ||
{ | ||
"type": "board-esp32-s3-devkitc-1", | ||
"id": "esp", | ||
"top": -0.18, | ||
"left": 4.57, | ||
"attrs": { "cpuFrequency": "16" } | ||
} | ||
], | ||
"connections": [ [ "esp:TX", "$serialMonitor:RX", "", [] ], [ "esp:RX", "$serialMonitor:TX", "", [] ] ], | ||
"dependencies": {} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
import subprocess | ||
|
||
import pytest | ||
|
||
|
||
@pytest.mark.parametrize("chip", ["esp32", "esp32s2", "esp32s3", "esp32c3"]) | ||
def test_gptimer(chip: str): | ||
|
||
# Run the Wokwi CLI | ||
result = subprocess.run( | ||
[ | ||
"wokwi-cli", | ||
"--elf", | ||
f"../bin/{chip}/idf/latest/components/esp_driver_gptimer/test_apps/gptimer/firmware.uf2", | ||
"--timeout", | ||
"20000", | ||
"--scenario", | ||
"test_gptimer.scenario.yaml", | ||
"--diagram-file", | ||
f"gptimer/diagram.{chip}.json", | ||
] | ||
) | ||
assert result.returncode == 0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
name: GPTimer Unity Tests | ||
version: 1 | ||
author: Uri Shaked | ||
|
||
steps: | ||
- wait-serial: 'Press ENTER to see the list of tests' | ||
- write-serial: "*\n" | ||
- wait-serial: ' Tests 0 Failures 0 Ignored' |