-
Notifications
You must be signed in to change notification settings - Fork 22
/
main.c
42 lines (34 loc) · 999 Bytes
/
main.c
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
/******************************************************************************
* @file main.c
*
* @brief Main entrypoint of the application.
*
* @author Cavin McKinley (MCKNLY LLC)
*
* @date 02-14-2024
*
* @copyright Copyright (c) 2024 Cavin McKinley (MCKNLY LLC)
* Released under the MIT License
*
* SPDX-License-Identifier: MIT
******************************************************************************/
#include "hardware_config.h"
#include "device_drivers.h"
#include "services/services.h"
#include "task.h"
/************************
* Here be main
*************************/
void main()
{
// initialize hardware
hardware_init();
// initialize any connected peripheral devices
driver_init();
// register the taskmanager base service
taskman_service();
// start the rtos scheduler (boot the system!)
vTaskStartScheduler();
// will not reach here unless rtos crashes, reboot if that happens
force_watchdog_reboot();
}