remove unecessary demos
This commit is contained in:
@ -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();
|
|
||||||
}
|
|
||||||
@ -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
|
|
||||||
@ -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));
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
@ -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
|
|
||||||
Reference in New Issue
Block a user