Compare commits
5 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| 1f3b69ac7b | |||
| 7ebcd1a9de | |||
| c047b81ea8 | |||
| e162f2c78b | |||
| 7db56facd9 |
5
.gitignore
vendored
5
.gitignore
vendored
@@ -1,4 +1 @@
|
||||
.pio
|
||||
.vscode
|
||||
.DS_Store
|
||||
platformio.ini
|
||||
desktop.ini
|
||||
|
||||
18
.gitmodules
vendored
18
.gitmodules
vendored
@@ -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
3
CMakeLists.txt
Normal file
@@ -0,0 +1,3 @@
|
||||
cmake_minimum_required(VERSION 3.16)
|
||||
include($ENV{IDF_PATH}/tools/cmake/project.cmake)
|
||||
project(ate0002)
|
||||
@@ -1,3 +1,2 @@
|
||||
# ate0002.000.000
|
||||
|
||||
git clone --recurse-submodules -b dev http://git.zh.com.ru/aerotech/ate0002.000.000
|
||||
BIN
cad/ATE0002.000.00 СБ _ Корпус.a3d
Normal file
BIN
cad/ATE0002.000.00 СБ _ Корпус.a3d
Normal file
Binary file not shown.
BIN
cad/ATE0002.000.001 _ Низ.m3d
Normal file
BIN
cad/ATE0002.000.001 _ Низ.m3d
Normal file
Binary file not shown.
BIN
cad/ATE0002.000.002 _ Перед.m3d
Normal file
BIN
cad/ATE0002.000.002 _ Перед.m3d
Normal file
Binary file not shown.
BIN
cad/ATE0002.000.003 _ Зад.m3d
Normal file
BIN
cad/ATE0002.000.003 _ Зад.m3d
Normal file
Binary file not shown.
BIN
cad/ATE0002.000.004 _ Верх.m3d
Normal file
BIN
cad/ATE0002.000.004 _ Верх.m3d
Normal file
Binary file not shown.
BIN
cad/ATE0002.000.005 _ Ножка.m3d
Normal file
BIN
cad/ATE0002.000.005 _ Ножка.m3d
Normal file
Binary file not shown.
BIN
cad/ATE0002.000.006 _ Кнопка.m3d
Normal file
BIN
cad/ATE0002.000.006 _ Кнопка.m3d
Normal file
Binary file not shown.
BIN
cad/ATE0002.001.000 СБ _ DUWI 26840.a3d
Normal file
BIN
cad/ATE0002.001.000 СБ _ DUWI 26840.a3d
Normal file
Binary file not shown.
BIN
cad/ATE0002.001.001 _ Кнопка.m3d
Normal file
BIN
cad/ATE0002.001.001 _ Кнопка.m3d
Normal file
Binary file not shown.
BIN
cad/ATE0002.001.002 _ Корпус.m3d
Normal file
BIN
cad/ATE0002.001.002 _ Корпус.m3d
Normal file
Binary file not shown.
BIN
cad/ATE0002.002.000 СБ _ KLS5-254.a3d
Normal file
BIN
cad/ATE0002.002.000 СБ _ KLS5-254.a3d
Normal file
Binary file not shown.
BIN
cad/ATE0002.002.001 _ Корпус.m3d
Normal file
BIN
cad/ATE0002.002.001 _ Корпус.m3d
Normal file
Binary file not shown.
BIN
cad/ATE0002.003.000 СБ _ BP-522.m3d
Normal file
BIN
cad/ATE0002.003.000 СБ _ BP-522.m3d
Normal file
Binary file not shown.
BIN
cad/ATE0002.003.001 _ Штырь.m3d
Normal file
BIN
cad/ATE0002.003.001 _ Штырь.m3d
Normal file
Binary file not shown.
BIN
cad/ATE0002.003.002 _ Корпус RED.m3d
Normal file
BIN
cad/ATE0002.003.002 _ Корпус RED.m3d
Normal file
Binary file not shown.
BIN
cad/ATE0002.003.003 _ Корпус BLACK.m3d
Normal file
BIN
cad/ATE0002.003.003 _ Корпус BLACK.m3d
Normal file
Binary file not shown.
Submodule lib/zh_avr_160x_i2c deleted from d95823281b
Submodule lib/zh_avr_common deleted from 728b5c6d1d
Submodule lib/zh_avr_free_rtos deleted from a408615f7d
Submodule lib/zh_avr_i2c deleted from da2fd0d2a8
Submodule lib/zh_avr_pcf8574 deleted from 196398ac6f
Submodule lib/zh_avr_vector deleted from eddd461e96
1
main/CMakeLists.txt
Normal file
1
main/CMakeLists.txt
Normal file
@@ -0,0 +1 @@
|
||||
idf_component_register(SRCS "main.c" INCLUDE_DIRS "")
|
||||
4
main/main.c
Normal file
4
main/main.c
Normal file
@@ -0,0 +1,4 @@
|
||||
void app_main(void)
|
||||
{
|
||||
|
||||
}
|
||||
BIN
pcb/BOM_ATE0002.000.001_v.1.xlsx
Normal file
BIN
pcb/BOM_ATE0002.000.001_v.1.xlsx
Normal file
Binary file not shown.
BIN
pcb/Gerber_ATE0002.000.001_v.1.zip
Normal file
BIN
pcb/Gerber_ATE0002.000.001_v.1.zip
Normal file
Binary file not shown.
68894
pcb/SCH_ATE0002.000.001_v.1.pdf
Normal file
68894
pcb/SCH_ATE0002.000.001_v.1.pdf
Normal file
File diff suppressed because it is too large
Load Diff
30
src/main.c
30
src/main.c
@@ -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;
|
||||
}
|
||||
Reference in New Issue
Block a user