summaryrefslogtreecommitdiff
path: root/src/arch/infineon-tc299-mock/driver
diff options
context:
space:
mode:
Diffstat (limited to 'src/arch/infineon-tc299-mock/driver')
-rw-r--r--src/arch/infineon-tc299-mock/driver/counter.cc10
-rw-r--r--src/arch/infineon-tc299-mock/driver/gpio.cc8
-rw-r--r--src/arch/infineon-tc299-mock/driver/stdout.cc16
3 files changed, 34 insertions, 0 deletions
diff --git a/src/arch/infineon-tc299-mock/driver/counter.cc b/src/arch/infineon-tc299-mock/driver/counter.cc
new file mode 100644
index 0000000..7279806
--- /dev/null
+++ b/src/arch/infineon-tc299-mock/driver/counter.cc
@@ -0,0 +1,10 @@
+/*
+ * Copyright 2022 Daniel Friesel
+ *
+ * SPDX-License-Identifier: BSD-2-Clause
+ */
+#include "arch.h"
+#include "driver/counter.h"
+#include "driver/gpio.h"
+
+Counter counter;
diff --git a/src/arch/infineon-tc299-mock/driver/gpio.cc b/src/arch/infineon-tc299-mock/driver/gpio.cc
new file mode 100644
index 0000000..b66add2
--- /dev/null
+++ b/src/arch/infineon-tc299-mock/driver/gpio.cc
@@ -0,0 +1,8 @@
+/*
+ * Copyright 2022 Daniel Friesel
+ *
+ * SPDX-License-Identifier: BSD-2-Clause
+ */
+#include "driver/gpio.h"
+
+GPIO gpio;
diff --git a/src/arch/infineon-tc299-mock/driver/stdout.cc b/src/arch/infineon-tc299-mock/driver/stdout.cc
new file mode 100644
index 0000000..ccdb7d5
--- /dev/null
+++ b/src/arch/infineon-tc299-mock/driver/stdout.cc
@@ -0,0 +1,16 @@
+/*
+ * Copyright 2022 Daniel Friesel
+ *
+ * SPDX-License-Identifier: BSD-2-Clause
+ */
+#include "driver/stdout.h"
+
+void StandardOutput::setup()
+{
+}
+
+void StandardOutput::put(char c)
+{
+}
+
+StandardOutput kout;