scheduler + 2 instances of application
This commit is contained in:
@@ -12,6 +12,7 @@
|
||||
#include "../../thread/scheduler.h"
|
||||
|
||||
extern Scheduler sch;
|
||||
static uint8_t appl_cnt = 0;
|
||||
|
||||
char text[] = "Ich mag\n\
|
||||
Saftige Pflaumen voller Aroma\n\
|
||||
@@ -40,13 +41,13 @@ void activeWaitDelay(uint64_t cycles) {
|
||||
|
||||
void Application::action() { // NOLINT
|
||||
uint16_t cnt = 0;
|
||||
uint8_t row = appl_cnt++;
|
||||
while (1) {
|
||||
//koutlock.lock();
|
||||
{
|
||||
Guarded g = Guard::enter();
|
||||
//g.vault();
|
||||
g.vault().kout.setPos((unsigned)0,(unsigned)Core::getID()*2+1);
|
||||
|
||||
g.vault().kout.setPos((unsigned)10*row,(unsigned)Core::getID()*2+1);
|
||||
g.vault().kout << cnt++ << flush;
|
||||
|
||||
//g.vault().kout << endl << flush;
|
||||
|
||||
Reference in New Issue
Block a user