aboutsummaryrefslogtreecommitdiff
path: root/robot/sim.c
diff options
context:
space:
mode:
authorlonkaars <loek@pipeframe.xyz>2022-05-13 14:15:13 +0200
committerlonkaars <loek@pipeframe.xyz>2022-05-13 14:15:13 +0200
commit4dc9b15829321e29b82c5f0317d2a0811aee6482 (patch)
tree0b72b2e1ee14d500cd49311131a084983cdf5de6 /robot/sim.c
parentd473b1f2a3c37f08510bb8ee5630c9254969bd55 (diff)
implement dummy simulation functionssim
Diffstat (limited to 'robot/sim.c')
-rw-r--r--robot/sim.c38
1 files changed, 38 insertions, 0 deletions
diff --git a/robot/sim.c b/robot/sim.c
new file mode 100644
index 0000000..8fc8d00
--- /dev/null
+++ b/robot/sim.c
@@ -0,0 +1,38 @@
+#include <stdio.h>
+
+#include "sim.h"
+
+void time_reset() {
+ return;
+ printf("SIM: time_reset()\n");
+}
+
+unsigned long get_ms() {
+ printf("SIM: get_ms()\n");
+ return 0;
+}
+
+void red_led(unsigned char on) {
+ printf("SIM: red_led(%i)\n", on);
+ return;
+}
+
+void green_led(unsigned char on) {
+ printf("SIM: green_led(%i)\n", on);
+ return;
+}
+
+void clear() {
+ printf("SIM: clear()\n");
+ return;
+}
+
+void play(const char* melody) {
+ printf("SIM: play(\"%s\")\n", melody);
+ return;
+}
+
+void serial_set_baud_rate(unsigned int rate) {
+ printf("SIM: serial_set_baud_rate(%u)\n", rate);
+ return;
+}