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

9
.gitmodules vendored Normal file
View File

@@ -0,0 +1,9 @@
[submodule "lib/zh_avr_free_rtos"]
path = lib/zh_avr_free_rtos
url = http://git.zh.com.ru/avr_libraries/zh_avr_free_rtos
[submodule "lib/zh_avr_vector"]
path = lib/zh_avr_vector
url = http://git.zh.com.ru/avr_libraries/zh_avr_vector
[submodule "lib/zh_avr_i2c"]
path = lib/zh_avr_i2c
url = http://git.zh.com.ru/avr_libraries/zh_avr_i2c

1
lib/zh_avr_free_rtos Submodule

Submodule lib/zh_avr_free_rtos added at b00f1002d6

1
lib/zh_avr_i2c Submodule

Submodule lib/zh_avr_i2c added at 8bc9f02ad8

1
lib/zh_avr_vector Submodule

Submodule lib/zh_avr_vector added at 8f02ea625c

View File

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