wip:
This commit is contained in:
9
.gitmodules
vendored
Normal file
9
.gitmodules
vendored
Normal 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
1
lib/zh_avr_free_rtos
Submodule
Submodule lib/zh_avr_free_rtos added at b00f1002d6
1
lib/zh_avr_i2c
Submodule
1
lib/zh_avr_i2c
Submodule
Submodule lib/zh_avr_i2c added at 8bc9f02ad8
1
lib/zh_avr_vector
Submodule
1
lib/zh_avr_vector
Submodule
Submodule lib/zh_avr_vector added at 8f02ea625c
@@ -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;
|
||||||
}
|
}
|
Reference in New Issue
Block a user