Logo Pico-Framework A web-first embedded framework for C++
Loading...
Searching...
No Matches
main.cpp File Reference
#include "pico/stdlib.h"
#include "FreeRTOS.h"
#include "task.h"
#include "app.h"
+ Include dependency graph for main.cpp:

Go to the source code of this file.

Functions

int main ()
 

Function Documentation

◆ main()

int main ( )

Definition at line 6 of file main.cpp.

6 {
7
8 int64_t start = to_ms_since_boot(get_absolute_time());
9 stdio_init_all();
10
11 static App app(80);
12 int64_t end = to_ms_since_boot(get_absolute_time());
13 printf("[BootTimer] App constructed in %lld ms\n", end - start);
14
15 std::cout << "System Booting..." << std::endl;
16 vTaskStartScheduler();
17
18 std::cerr << "ERROR: Scheduler did not start!" << std::endl;
19 return 0;
20}
Definition app.h:23