enable demo in main
This commit is contained in:
33
c_os/main.cc
33
c_os/main.cc
@ -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;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user