1

enable demo in main

This commit is contained in:
2022-05-23 09:12:14 +02:00
parent 0537f6dd45
commit 1af89fd5ac

View File

@ -10,34 +10,35 @@
* Autor: Michael Schoettner, HHU, 11.11.2016 * * Autor: Michael Schoettner, HHU, 11.11.2016 *
*****************************************************************************/ *****************************************************************************/
#include "kernel/Allocator.h"
#include "kernel/Globals.h" #include "kernel/Globals.h"
#include "user/HeapDemo.h" #include "user/CoroutineDemo.h"
#include "user/KeyIRQDemo.h"
CoroutineDemo coroutineDemo;
int main() { int main() {
kout.clear(); kout.clear();
// Speicherverwaltung initialisieren // Speicherverwaltung initialisieren
// allocator.init(); // NOTE: Disabled for coroutines allocator.init();
// Initialize scrollback buffer after allocator.init() // Initialize scrollback buffer after allocator.init()
// kout.init(5); // NOTE: Disabled for coroutines kout.init(5);
// Startmeldung // Startmeldung
kout << "HHUos 0.5" << endl // kout << "HHUos 0.5" << endl
<< "=========" << endl // << "=========" << endl
<< "Unterstuetzte Funktionen:" << endl // << "Unterstuetzte Funktionen:" << endl
<< " - Bildschirmausgaben" << endl // << " - Bildschirmausgaben" << endl
<< " - Sound ueber den PC-Lautsprecher" << endl // << " - Sound ueber den PC-Lautsprecher" << endl
<< " - Tastatureingaben per Interrupt" << endl // << " - Tastatureingaben per Abfrage" << endl
// << " - Einfache Heap verwaltung" << endl // << " - Einfache Heap verwaltung" << endl
<< " - Koroutinen" << endl // << " - Tastatureingaben per Interrupt" << endl
<< endl; // << " - Koroutinen" << endl
// << endl;
// Tastatur-Unterbrechungsroutine 'einstoepseln' // Tastatur-Unterbrechungsroutine 'einstoepseln'
/* hier muss Code eingefuegt werden */ /* hier muss Code eingefuegt werden */
kb.plugin(intdis, pic); kb.plugin();
// Interrupts erlauben (Tastatur) // Interrupts erlauben (Tastatur)
/* hier muss Code eingefuegt werden */ /* hier muss Code eingefuegt werden */
@ -48,7 +49,7 @@ int main() {
// keyboard_demo(); // keyboard_demo();
// heap_demo(); // heap_demo();
// key_irq_demo(); // key_irq_demo();
coroutineDemo.main();
while (1) {};
return 0; return 0;
} }