diff options
| author | 2019-04-13 12:40:52 -0400 | |
|---|---|---|
| committer | 2019-04-13 12:40:52 -0400 | |
| commit | 55bfff7cf6541caac172b43186cf14405185b14d (patch) | |
| tree | c1ae99d2b39f8df8933d81ec2e61e81050bdb410 /frontends/calculator/CEdev/examples/delay | |
| parent | 761462861fc1228e65546c4e0f877d5212320082 (diff) | |
| download | cetris-55bfff7cf6541caac172b43186cf14405185b14d.tar.gz cetris-55bfff7cf6541caac172b43186cf14405185b14d.tar.bz2 cetris-55bfff7cf6541caac172b43186cf14405185b14d.zip | |
fix curses on linux
Diffstat (limited to 'frontends/calculator/CEdev/examples/delay')
4 files changed, 79 insertions, 79 deletions
diff --git a/frontends/calculator/CEdev/examples/delay/autotester.json b/frontends/calculator/CEdev/examples/delay/autotester.json index 4eabd14..6ce4042 100644 --- a/frontends/calculator/CEdev/examples/delay/autotester.json +++ b/frontends/calculator/CEdev/examples/delay/autotester.json @@ -1,39 +1,39 @@ -{ - "__comment": "FIXME timing is way too lenient because the autotester framework and travis are trash", - "rom": "84pce_515.rom", - "transfer_files": [ - "bin/DEMO.8xp" - ], - "target": { - "name": "DEMO", - "isASM": true - }, - "sequence": [ - "action|launch", - "hashWait|1", - "delay|4500", - "hashWait|2", - "hashWait|3" - ], - "hashes": { - "1": { - "description": "Waiting for 5000 ms...", - "start": "vram_start", - "size": "vram_16_size", - "expected_CRCs": [ "690F0EEC" ] - }, - "2": { - "description": "Done", - "start": "vram_start", - "size": "vram_16_size", - "expected_CRCs": [ "948248E" ], - "timeout": 1100 - }, - "3": { - "description": "Back to the home screen (exit check)", - "start": "vram_start", - "size": "vram_16_size", - "expected_CRCs": [ "FFAF89BA", "101734A5", "9DA19F44" ] - } - } -} +{
+ "__comment": "FIXME timing is way too lenient because the autotester framework and travis are trash",
+ "rom": "84pce_515.rom",
+ "transfer_files": [
+ "bin/DEMO.8xp"
+ ],
+ "target": {
+ "name": "DEMO",
+ "isASM": true
+ },
+ "sequence": [
+ "action|launch",
+ "hashWait|1",
+ "delay|4500",
+ "hashWait|2",
+ "hashWait|3"
+ ],
+ "hashes": {
+ "1": {
+ "description": "Waiting for 5000 ms...",
+ "start": "vram_start",
+ "size": "vram_16_size",
+ "expected_CRCs": [ "690F0EEC" ]
+ },
+ "2": {
+ "description": "Done",
+ "start": "vram_start",
+ "size": "vram_16_size",
+ "expected_CRCs": [ "948248E" ],
+ "timeout": 1100
+ },
+ "3": {
+ "description": "Back to the home screen (exit check)",
+ "start": "vram_start",
+ "size": "vram_16_size",
+ "expected_CRCs": [ "FFAF89BA", "101734A5", "9DA19F44" ]
+ }
+ }
+}
diff --git a/frontends/calculator/CEdev/examples/delay/makefile b/frontends/calculator/CEdev/examples/delay/makefile index 1f1b36b..d3deba8 100644 --- a/frontends/calculator/CEdev/examples/delay/makefile +++ b/frontends/calculator/CEdev/examples/delay/makefile @@ -1,15 +1,15 @@ -# ---------------------------- -# Set NAME to the program name -# Set ICON to the png icon file name -# Set DESCRIPTION to display within a compatible shell -# Set COMPRESSED to "YES" to create a compressed program -# ---------------------------- - -NAME ?= DEMO -COMPRESSED ?= NO -ICON ?= iconc.png -DESCRIPTION ?= "C SDK Demo" - -# ---------------------------- - -include $(CEDEV)/include/.makefile +# ----------------------------
+# Set NAME to the program name
+# Set ICON to the png icon file name
+# Set DESCRIPTION to display within a compatible shell
+# Set COMPRESSED to "YES" to create a compressed program
+# ----------------------------
+
+NAME ?= DEMO
+COMPRESSED ?= NO
+ICON ?= iconc.png
+DESCRIPTION ?= "C SDK Demo"
+
+# ----------------------------
+
+include $(CEDEV)/include/.makefile
diff --git a/frontends/calculator/CEdev/examples/delay/readme.md b/frontends/calculator/CEdev/examples/delay/readme.md index 0110f27..f391939 100644 --- a/frontends/calculator/CEdev/examples/delay/readme.md +++ b/frontends/calculator/CEdev/examples/delay/readme.md @@ -1,9 +1,9 @@ -### Delay Demo - -Demonstrates using the millisecond delay function in tice.h. - - - ---- - -This demo is a part of the C SDK Toolchain for use on the CE. +### Delay Demo
+
+Demonstrates using the millisecond delay function in tice.h.
+
+
+
+---
+
+This demo is a part of the C SDK Toolchain for use on the CE.
diff --git a/frontends/calculator/CEdev/examples/delay/src/main.c b/frontends/calculator/CEdev/examples/delay/src/main.c index 2fb8c41..46856a8 100644 --- a/frontends/calculator/CEdev/examples/delay/src/main.c +++ b/frontends/calculator/CEdev/examples/delay/src/main.c @@ -1,16 +1,16 @@ -#include <stdbool.h> -#include <stddef.h> -#include <stdint.h> -#include <tice.h> - -void main(void) { - /* Clear the homescreen */ - os_ClrHome(); - - /* Wait for 5 seconds */ - os_PutStrFull("Waiting for 5000 ms..."); - delay(5000); - os_SetCursorPos(1, 22); - os_PutStrFull("Done"); - delay(100); -} +#include <stdbool.h>
+#include <stddef.h>
+#include <stdint.h>
+#include <tice.h>
+
+void main(void) {
+ /* Clear the homescreen */
+ os_ClrHome();
+
+ /* Wait for 5 seconds */
+ os_PutStrFull("Waiting for 5000 ms...");
+ delay(5000);
+ os_SetCursorPos(1, 22);
+ os_PutStrFull("Done");
+ delay(100);
+}
|