From 467bffb76b3d3aea8fc286950a437fe41e69f736 Mon Sep 17 00:00:00 2001 From: ChUrl Date: Mon, 11 Jul 2022 18:42:22 +0200 Subject: [PATCH] remove unecessary demos --- c_os/user/HelloWorldThread.cc | 25 ------------------------- c_os/user/HelloWorldThread.h | 29 ----------------------------- c_os/user/KeyIRQDemo.cc | 24 ------------------------ c_os/user/KeyIRQDemo.h | 16 ---------------- 4 files changed, 94 deletions(-) delete mode 100644 c_os/user/HelloWorldThread.cc delete mode 100644 c_os/user/HelloWorldThread.h delete mode 100755 c_os/user/KeyIRQDemo.cc delete mode 100755 c_os/user/KeyIRQDemo.h diff --git a/c_os/user/HelloWorldThread.cc b/c_os/user/HelloWorldThread.cc deleted file mode 100644 index 2a27b6c..0000000 --- a/c_os/user/HelloWorldThread.cc +++ /dev/null @@ -1,25 +0,0 @@ -/***************************************************************************** - * * - * H E L L O W O R L D T H R E A D * - * * - *---------------------------------------------------------------------------* - * Beschreibung: Ein einfacher Thread. * - * * - * Autor: Michael Schoettner, HHU, 21.8.2016 * - *****************************************************************************/ - -#include "user/HelloWorldThread.h" -#include "kernel/Globals.h" - -/***************************************************************************** - * Methode: HelloWorldThread::run * - *---------------------------------------------------------------------------* - * Beschreibung: Einstiegsfunktion in unseren Thread. * - *****************************************************************************/ -void HelloWorldThread::run() { - - kout << "Hallo Welt von einem Thread!" << endl; - - // selbst terminieren - scheduler.exit(); -} diff --git a/c_os/user/HelloWorldThread.h b/c_os/user/HelloWorldThread.h deleted file mode 100644 index 0154fd8..0000000 --- a/c_os/user/HelloWorldThread.h +++ /dev/null @@ -1,29 +0,0 @@ -/***************************************************************************** - * * - * H E L L O W O R L D T H R E A D * - * * - *---------------------------------------------------------------------------* - * Beschreibung: Ein einfacher Thread. * - * * - * Autor: Michael Schoettner, HHU, 16.12.2016 * - *****************************************************************************/ -#ifndef __hello_world_thread_include__ -#define __hello_world_thread_include__ - -#include "kernel/Globals.h" -#include "kernel/threads/Thread.h" - -class HelloWorldThread : public Thread { -private: - HelloWorldThread(const HelloWorldThread& copy) = delete; // Verhindere Kopieren - -public: - HelloWorldThread() : Thread() { - kout << "Initialized HelloWorldThread" << endl; - } - - // Thread-Startmethode - void run() override; -}; - -#endif diff --git a/c_os/user/KeyIRQDemo.cc b/c_os/user/KeyIRQDemo.cc deleted file mode 100755 index 0c06662..0000000 --- a/c_os/user/KeyIRQDemo.cc +++ /dev/null @@ -1,24 +0,0 @@ -/***************************************************************************** - * * - * K E Y I R Q D E M O * - * * - *---------------------------------------------------------------------------* - * Beschreibung: Demo zu Interrupts. * - * * - * Autor: Michael Schoettner, HHU, 26.10.2018 * - *****************************************************************************/ - -#include "kernel/Globals.h" - -void key_irq_demo() { - - /* Hier muss Code eingefuegt werden */ - - // TODO: I don't understand the task - - while (true) { - for (unsigned char i = 0; i < 10; ++i) { - kout.show(kout.COLUMNS - 1, i, (char)(48 + i)); - } - } -} diff --git a/c_os/user/KeyIRQDemo.h b/c_os/user/KeyIRQDemo.h deleted file mode 100755 index dc3f65f..0000000 --- a/c_os/user/KeyIRQDemo.h +++ /dev/null @@ -1,16 +0,0 @@ -/***************************************************************************** - * * - * K E Y I R Q D E M O * - * * - *---------------------------------------------------------------------------* - * Beschreibung: Demo zu Interrupts. * - * * - * Autor: Michael Schoettner, HHU, 26.10.2018 * - *****************************************************************************/ - -#ifndef __KeyIRQDemo_include__ -#define __KeyIRQDemo_include__ - -void key_irq_demo(); - -#endif