From e06c1dce2e1010e7b01c8f8101945a7426f7c57f Mon Sep 17 00:00:00 2001 From: Terraneo Federico <fede.tft@miosix.org> Date: Thu, 21 Apr 2016 11:35:16 +0200 Subject: [PATCH] Cleaned up main.cpp --- main.cpp | 24 +++++------------------- 1 file changed, 5 insertions(+), 19 deletions(-) diff --git a/main.cpp b/main.cpp index 83f1cf37..afcc059f 100644 --- a/main.cpp +++ b/main.cpp @@ -1,25 +1,11 @@ + #include <stdio.h> -#include <pthread.h> #include "miosix.h" -#include "kernel/logging.h" -#include "interfaces/cstimer.h" + using namespace std; using namespace miosix; -static void t1Task(void* p){ - 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); - } +int main() +{ + } -- GitLab