Skip to main content
aboutsummaryrefslogtreecommitdiffstats
blob: 845779756e82586ce6ce4ef32372493c9784061c (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
/**
 * @author generated by eTrice
 *
 * this class contains the main function running component SubSys
 * it instantiates SubSys and starts and ends the lifecycle
 */


#include "SubSys.h"

#include "etLogger.h"

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

int main(void) {

	etLogger_logInfo("***   T H E   B E G I N   ***");

	/* startup sequence  of lifecycle */
	SubSys_init(); 		/* lifecycle init */
	SubSys_start(); 	/* lifecycle start */

	/* run Scheduler */
	SubSys_run();

	/* shutdown sequence of lifecycle */
	SubSys_stop(); 		/* lifecycle stop */
	SubSys_destroy(); 	/* lifecycle destroy */

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

	return 0;
}

Back to the top