Skip to main content
aboutsummaryrefslogtreecommitdiffstats
blob: f187882df70bcd88cb4e2b0ece48dfd829369323 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
/**
 * @author generated by eTrice
 *
 * this class contains the main function running component SubSys
 * it instantiates SubSys and starts and ends the lifecycle
 */


#include "Node1.h"

#include "debugging/etLogger.h"
#include "debugging/etMSCLogger.h"
#include "platform/etPlatform.h"


/**
 * main function
 * creates component and starts and stops the lifecycle
 */

int main(void) {
	etUserEntry(); /* platform specific */
	
	etLogger_logInfo("***   T H E   B E G I N   ***");
	ET_MSC_LOGGER_OPEN("main");

	/* startup sequence  of lifecycle */
	Node1_init(); 		/* lifecycle init */
	Node1_start(); 	/* lifecycle start */

	etUserPreRun(); /* platform specific */

	/* run Scheduler */
	Node1_run();

	etUserPostRun(); /* platform specific */

	/* shutdown sequence of lifecycle */
	Node1_stop(); 		/* lifecycle stop */
	Node1_destroy(); 	/* lifecycle destroy */

	ET_MSC_LOGGER_CLOSE
	etLogger_logInfo("***   T H E   E N D   ***");

	etUserExit(); /* platform specific */

	return 0;
}

Back to the top