35 lines
916 B
C++
35 lines
916 B
C++
#include <memory>
|
|
|
|
#include "FreeRTOS.h"
|
|
#include "task.h"
|
|
#include "pico/stdlib.h"
|
|
|
|
#include "Led.h"
|
|
#include "SerialTx.h"
|
|
#include "SerialRx.h"
|
|
#include "Display.h"
|
|
|
|
int main()
|
|
{
|
|
stdio_init_all();
|
|
sleep_ms(2000);
|
|
printf("[Main] ---------------\n");
|
|
printf("[Main] We have started\n");
|
|
printf("[Main] ---------------\n");
|
|
|
|
std::shared_ptr<es::Other::Led> led = es::Task::Task<uint8_t>::create<es::Other::Led>();
|
|
std::shared_ptr<es::Serial::SerialTx> serial_tx = es::Task::Task<uint8_t>::create<es::Serial::SerialTx>();
|
|
std::shared_ptr<es::Serial::SerialRx> serial_rx = es::Task::Task<uint8_t>::create<es::Serial::SerialRx>();
|
|
std::shared_ptr<es::Display::Display> display = es::Task::Task<uint8_t>::create<es::Display::Display>();
|
|
led->start();
|
|
serial_tx->start();
|
|
serial_rx->start();
|
|
display->start();
|
|
|
|
vTaskStartScheduler();
|
|
|
|
while (true)
|
|
{
|
|
}
|
|
}
|