You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
55 lines
922 B
55 lines
922 B
/*
|
|
* Authors : Kerem Yollu & Edwin Koch
|
|
* Date : 07.03.2021
|
|
*
|
|
* Description :
|
|
* TODO : Write description or doxygene
|
|
*
|
|
*/
|
|
|
|
#include <iostream>
|
|
#include <stdint.h>
|
|
#include "errorHandling.h"
|
|
#include "commandManager.h"
|
|
#include "systemCall.h"
|
|
#include "i2c_driver.h"
|
|
|
|
|
|
|
|
|
|
|
|
|
|
ErrorHandler errorHandle;
|
|
CommandManager commander;
|
|
I2C_Driver i2cDriver;
|
|
|
|
|
|
int initPlatform()
|
|
{
|
|
// Dev. Module initialisation "Ex i2c_init() ...."
|
|
|
|
return 0;
|
|
}
|
|
|
|
void dummy()
|
|
{
|
|
std::cout<< i2cDriver.readByte(0x40,0x00) <<std::endl;
|
|
}
|
|
|
|
int main(int argc, char *argv[])
|
|
{
|
|
|
|
// Init
|
|
std::cout << "Main" << std::endl;
|
|
//errorHandle.addNewError(-34,"Test eroor 1");
|
|
//errorHandle.handleError(-34);
|
|
//commander.addNewCommand("test", "The test command for testing the test", dummy);
|
|
//commander(argv[1]);
|
|
|
|
commander.addNewCommand("i2c", "The test command for testing the test", dummy);
|
|
commander(argv[1]);
|
|
|
|
|
|
return 1;
|
|
}
|