temp

main.cpp

Committer:
BenRJG
Date:
2018-12-06
Revision:
0:2a4af0cb6e8d

File content as of revision 0:2a4af0cb6e8d:

#include "mbed.h"
#include "SDReader.hpp"
#include "rtos.h"
#include "General.hpp"
#include "NetWorking.hpp"
#include "Pages.hpp"
#include "Terminal.hpp"
#include "displayThread.h"
#include "sample_buffer.hpp"
#include "dateTime.hpp"

// Threads
Thread SDcard_THREAD;
Thread Terminal_THREAD;
Thread NetWorking_THREAD;
Thread Display;


int number = 22;

char itemTestA[10];
char itemTestB[] = "Hello";

// Thread ID for the Main function (CMSIS API)
osThreadId tidMain;

//int main starts all threads then becomes TerminalThread
int main(void)
{   
    //Main thread ID
    //tidMain = Thread::gettid();  
    
    // Start each thread
    //SDcard_THREAD.start(SDThread);
    //Terminal_THREAD.start(TerminalThread);
    //NetWorking_THREAD.start(NetWorkingThread);
    //Display.start(DisplayThread);  
    
    //NetWorkingThread();


    Display.start(DisplayThread);
	
		
	
	
	
//		struct tm test_tm;
//		test_tm.tm_year = 0;
//		test_tm.tm_mon = 0;
//		test_tm.tm_mday = 1;
//		test_tm.tm_hour = 0;
//		test_tm.tm_min = 0;
//		test_tm.tm_sec = 0;
//	
//	
//	
//	
//	
//		time_t test_time;
//	
//		test_tm.tm_year = 70;
//		test_time = mktime(&test_tm);
//		test_tm = *localtime(&test_time);
//		
//		printf("year = %d\n\r",test_tm.tm_year + 1900);
//		printf("time = %d\n\r",test_time);
		
	
	
    while(1);    
}