This commit is contained in:
2025-08-10 20:57:46 +03:00
parent 1229352c64
commit b2b7017e94
5 changed files with 17 additions and 0 deletions

View File

@@ -1,6 +1,10 @@
#include "FreeRTOS.h"
#include "task.h"
#include "avr/io.h"
#include "stdio.h"
// Set configTOTAL_HEAP_SIZE to 1792!!!
#define BAUD_RATE 9600
#define BAUD_PRESCALE (F_CPU / 16 / BAUD_RATE - 1)
@@ -21,5 +25,6 @@ int main(void)
UCSR0B = (1 << RXEN0) | (1 << TXEN0);
UCSR0C = (1 << UCSZ01) | (1 << UCSZ00);
stdout = &uart;
vTaskStartScheduler();
return 0;
}