Skip to content
Snippets Groups Projects
Commit e06c1dce authored by Federico's avatar Federico
Browse files

Cleaned up main.cpp

parent b8529146
No related branches found
No related tags found
2 merge requests!40Update to Miosix 2.7,!17Draft: Improved miosix build system and fixed cmake scripts
#include <stdio.h> #include <stdio.h>
#include <pthread.h>
#include "miosix.h" #include "miosix.h"
#include "kernel/logging.h"
#include "interfaces/cstimer.h"
using namespace std; using namespace std;
using namespace miosix; using namespace miosix;
static void t1Task(void* p){ int main()
while (true){ {
IRQbootlog("1\r\n");
Thread::sleep(500);
}
}
int main(){
//ContextSwitchTimer::instance();
Thread::setPriority(1);
printf("Context Switch Timer (APERIODIC) ....T=1ms\n");
Thread *p=Thread::create(t1Task,512,1,NULL);
while (true){
IRQbootlog("0\r\n");
Thread::sleep(250);
}
} }
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment