From 2a9250606e00c4729db79811e6c50f9ddeb29188 Mon Sep 17 00:00:00 2001 From: Daniel Friesel Date: Tue, 28 Jun 2022 16:00:06 +0200 Subject: tc1796/tc397 are not properly implemented → rename to -mock MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/arch/infineon-tc1796-mock/driver/counter.cc | 10 ++++++++++ src/arch/infineon-tc1796-mock/driver/gpio.cc | 8 ++++++++ src/arch/infineon-tc1796-mock/driver/stdout.cc | 16 ++++++++++++++++ 3 files changed, 34 insertions(+) create mode 100644 src/arch/infineon-tc1796-mock/driver/counter.cc create mode 100644 src/arch/infineon-tc1796-mock/driver/gpio.cc create mode 100644 src/arch/infineon-tc1796-mock/driver/stdout.cc (limited to 'src/arch/infineon-tc1796-mock/driver') diff --git a/src/arch/infineon-tc1796-mock/driver/counter.cc b/src/arch/infineon-tc1796-mock/driver/counter.cc new file mode 100644 index 0000000..7279806 --- /dev/null +++ b/src/arch/infineon-tc1796-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-tc1796-mock/driver/gpio.cc b/src/arch/infineon-tc1796-mock/driver/gpio.cc new file mode 100644 index 0000000..b66add2 --- /dev/null +++ b/src/arch/infineon-tc1796-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-tc1796-mock/driver/stdout.cc b/src/arch/infineon-tc1796-mock/driver/stdout.cc new file mode 100644 index 0000000..ccdb7d5 --- /dev/null +++ b/src/arch/infineon-tc1796-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; -- cgit v1.2.3