5 Commits
dev ... esp32

Author SHA1 Message Date
1f3b69ac7b wip: 2025-12-12 07:41:44 +03:00
7ebcd1a9de wip: 2025-12-10 16:36:35 +03:00
c047b81ea8 wip: 2025-12-10 16:27:46 +03:00
e162f2c78b wip: 2025-11-27 11:14:33 +03:00
7db56facd9 wip: 2025-11-27 08:50:27 +03:00
32 changed files with 68903 additions and 59 deletions

5
.gitignore vendored
View File

@@ -1,4 +1 @@
.pio
.vscode
.DS_Store
platformio.ini
desktop.ini

18
.gitmodules vendored
View File

@@ -1,18 +0,0 @@
[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
[submodule "lib/zh_avr_common"]
path = lib/zh_avr_common
url = http://git.zh.com.ru/avr_libraries/zh_avr_common
[submodule "lib/zh_avr_pcf8574"]
path = lib/zh_avr_pcf8574
url = http://git.zh.com.ru/avr_libraries/zh_avr_pcf8574
[submodule "lib/zh_avr_160x_i2c"]
path = lib/zh_avr_160x_i2c
url = http://git.zh.com.ru/avr_libraries/zh_avr_160x_i2c

3
CMakeLists.txt Normal file
View File

@@ -0,0 +1,3 @@
cmake_minimum_required(VERSION 3.16)
include($ENV{IDF_PATH}/tools/cmake/project.cmake)
project(ate0002)

View File

@@ -1,3 +1,2 @@
# ate0002.000.000
git clone --recurse-submodules -b dev http://git.zh.com.ru/aerotech/ate0002.000.000

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Submodule lib/zh_avr_i2c deleted from da2fd0d2a8

1
main/CMakeLists.txt Normal file
View File

@@ -0,0 +1 @@
idf_component_register(SRCS "main.c" INCLUDE_DIRS "")

4
main/main.c Normal file
View File

@@ -0,0 +1,4 @@
void app_main(void)
{
}

Binary file not shown.

Binary file not shown.

File diff suppressed because it is too large Load Diff

View File

@@ -1,30 +0,0 @@
#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)
int usart(char byte, FILE *stream)
{
while ((UCSR0A & (1 << UDRE0)) == 0)
{
}
UDR0 = byte;
return 0;
}
FILE uart = FDEV_SETUP_STREAM(usart, NULL, _FDEV_SETUP_WRITE);
int main(void)
{
UBRR0H = (BAUD_PRESCALE >> 8);
UBRR0L = BAUD_PRESCALE;
UCSR0B = (1 << RXEN0) | (1 << TXEN0);
UCSR0C = (1 << UCSZ01) | (1 << UCSZ00);
stdout = &uart;
vTaskStartScheduler();
return 0;
}