aboutsummaryrefslogtreecommitdiff
path: root/src/pad/esp32
diff options
context:
space:
mode:
authorXavier Del Campo Romero <xavi.dcr@tutanota.com>2024-01-29 23:58:04 +0100
committerXavier Del Campo Romero <xavi.dcr@tutanota.com>2024-01-30 01:16:18 +0100
commita27a35bd778d9afe9f04e7aed69d950bc4d980e8 (patch)
treecad17cb68da4a210538c15a7fba2289374c4fcc1 /src/pad/esp32
parentc2e2343054e8d11ebaaf426d6ca105e79e93da6a (diff)
downloadjancity-a27a35bd778d9afe9f04e7aed69d950bc4d980e8.tar.gz
WIP ESP32 port
Diffstat (limited to 'src/pad/esp32')
-rw-r--r--src/pad/esp32/inc/pad/port.h18
-rw-r--r--src/pad/esp32/src/pad.c20
2 files changed, 38 insertions, 0 deletions
diff --git a/src/pad/esp32/inc/pad/port.h b/src/pad/esp32/inc/pad/port.h
new file mode 100644
index 0000000..3f42422
--- /dev/null
+++ b/src/pad/esp32/inc/pad/port.h
@@ -0,0 +1,18 @@
+#ifndef PAD_ESP32_H
+#define PAD_ESP32_H
+
+#ifdef __cplusplus
+extern "C"
+{
+#endif
+
+struct pad_port
+{
+ int dummy;
+};
+
+#ifdef __cplusplus
+}
+#endif
+
+#endif /* PAD_SDL_1_2_H */
diff --git a/src/pad/esp32/src/pad.c b/src/pad/esp32/src/pad.c
new file mode 100644
index 0000000..78dd24d
--- /dev/null
+++ b/src/pad/esp32/src/pad.c
@@ -0,0 +1,20 @@
+#include <pad.h>
+#include <stdio.h>
+
+void pad_port_update(struct pad *const p)
+{
+}
+
+void pad_init(const int id, struct pad *const p)
+{
+}
+
+size_t pad_count(void)
+{
+ return 1;
+}
+
+const char *pad_name(const int id)
+{
+ return NULL;
+}