rusefi/firmware/main.cpp

34 lines
485 B
C++
Raw Normal View History

2014-04-22 17:43:32 -07:00
/**
* @file main.cpp
* @brief C++ main entry point
*
* @date Nov 29, 2012
* @author Andrey Belomutskiy, (c) 2012-2014
* http://rusefi.com/
*/
extern "C"
{
#include "global.h"
}
#include "main.h"
extern "C"
{
#include "rusefi.h"
}
int main(void) {
/*
* ChibiOS/RT initialization
*/
halInit();
chSysInit();
2014-04-26 07:09:26 -07:00
// looks like this holds a random value on start? Let's set a nice clean zero
DWT_CYCCNT = 0;
2014-04-22 17:43:32 -07:00
runRusEfi();
return 0;
}