Pico-Framework
A web-first embedded framework for C++
Loading...
Searching...
No Matches
main.cpp
Go to the documentation of this file.
1
#include "pico/stdlib.h"
2
#include "FreeRTOS.h"
3
#include "task.h"
4
#include "
app.h
"
5
6
int
main
() {
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
}
app.h
App
Definition
app.h:23
main
int main()
Definition
main.cpp:6
test-app
main.cpp
Generated by
1.9.8