main.c
Go to the documentation of this file.
1 // SPDX-License-Identifier: Beerware
2 /**
3  * @file main.c
4  * @brief Tamago, a clone of the famous digital pet from 1996
5  * @author Michael Fitzmayer
6  * @copyright "THE BEER-WARE LICENCE" (Revision 42)
7  */
8 
9 #include <stdlib.h>
10 #include "System.h"
11 #include "Tamago.h"
12 
13 /**
14  * @brief Main application, entry point.
15  * @retval int
16  */
17 int main(void)
18 {
19  int nError = 0;
20 
21  nError = System_Init();
22  if (0 != nError)
23  {
24  goto error;
25  }
26 
27  nError = Tamago_Init();
28  if (0 != nError)
29  {
30  goto error;
31  }
32 
33  while(1);
34  error:
35  return EXIT_FAILURE;
36 }
STM32F103C8T6 system initialisation.
int System_Init(void)
System Initialisation Function.
Definition: System.c:82
Tamago main application handler.
int main(void)
Main application, entry point.
Definition: main.c:17
int Tamago_Init(void)
Initialise Tamago main application handler.
Definition: Tamago.c:61