initial commit

master
loooph 2021-04-16 15:59:01 +02:00
parent 6e93b668fe
commit e53a7863bd
10 changed files with 397 additions and 0 deletions

29
.ccls Normal file
View File

@ -0,0 +1,29 @@
clang
%c -std=gnu11 -fno-fat-lto-objects -Os -Wall -ffunction-sections -fdata-sections -flto -mmcu=atmega32u4
%cpp -fno-exceptions -fno-threadsafe-statics -fpermissive -std=gnu++11 -Os -Wall -ffunction-sections -fdata-sections -flto -mmcu=atmega32u4
-I/home/loooph/synth/include
-I/home/loooph/synth/src
-I/home/loooph/.platformio/packages/framework-arduino-avr/cores/arduino
-I/home/loooph/.platformio/packages/framework-arduino-avr/variants/micro
-I/home/loooph/.platformio/packages/framework-arduino-avr/libraries/EEPROM/src
-I/home/loooph/.platformio/packages/framework-arduino-avr/libraries/HID/src
-I/home/loooph/.platformio/packages/framework-arduino-avr/libraries/SPI/src
-I/home/loooph/.platformio/packages/framework-arduino-avr/libraries/SoftwareSerial/src
-I/home/loooph/.platformio/packages/framework-arduino-avr/libraries/Wire/src
-I/home/loooph/.platformio/packages/toolchain-atmelavr/lib/gcc/avr/5.4.0/include-fixed
-I/home/loooph/.platformio/packages/toolchain-atmelavr/lib/gcc/avr/5.4.0/include
-I/home/loooph/.platformio/packages/toolchain-atmelavr/avr/include
-I/home/loooph/.platformio/packages/tool-unity
-DPLATFORMIO=50101
-DARDUINO_AVR_MICRO
-DF_CPU=16000000L
-DARDUINO_ARCH_AVR
-DARDUINO=10808
-DUSB_VID=0x2341
-DUSB_PID=0x8037
-DUSB_PRODUCT="Arduino Micro"
-DUSB_MANUFACTURER="Arduino"
-D__AVR_ATmega32U4__

Binary file not shown.

BIN
.pio/build/micro/firmware.elf Executable file

Binary file not shown.

View File

@ -0,0 +1,239 @@
:100000000C9490000C94B8000C94B8000C94B800B8
:100010000C94B8000C94B8000C94B8000C94B80080
:100020000C94B8000C94B8000C946C030C94DE0390
:100030000C94B8000C94B8000C94B8000C94B80060
:100040000C94B8000C94B8000C94B8000C94B80050
:100050000C94B8000C94B8000C94B8000C941C06D6
:100060000C94B8000C94B8000C94B8000C94B80030
:100070000C94B8000C94B8000C94B8000C94B80020
:100080000C94B8000C94B8000C94B8000C94B80010
:100090000C94B8000C94B8000C94B8000C94B80000
:1000A0000C94B8000C94B8000C94B800080B000233
:1000B0000202000009040000010202000005240001
:1000C0001001052401010104240206052406000193
:1000D0000705810310004009040100020A00000026
:1000E00007050202400000070583024000000403E8
:1000F000090412010002EF02014041233780000190
:100100000102030141726475696E6F204C4C43001B
:1001100041726475696E6F204D6963726F00660687
:1001200011241FBECFEFDAE0DEBFCDBF11E0A0E0AB
:10013000B1E0E2EAFEE002C005900D92A632B107FE
:10014000D9F721E0A6E2B1E001C01D92A539B207BE
:10015000E1F710E0C0E9D0E004C02197FE010E9461
:100160004407CF38D107C9F70E947B060C944F078C
:100170000C94000020919401211103C08FEF9FEF98
:1001800008955FB7F89422E02093E9002091F200EF
:1001900030E01216130614F421E030E0422FFC0187
:1001A00084E6415038F0289A809393019091F100B1
:1001B0009193F7CF2115310521F08091F20088232A
:1001C00019F05FBFC90108958BE68093E800F9CF6D
:1001D0002FB7F89483E08093E9009091E800892F8D
:1001E000807295FF04C09091F20080E4891B2FBFBC
:1001F0000895CF92DF92EF92FF920F931F93CF93C8
:10020000DF936C017A018B01C0E0D0E0CE15DF05F1
:1002100081F0D8016D918D01D601ED91FC91019095
:10022000F081E02DC6010995892B11F02196EECFC2
:100230007E01C701DF91CF911F910F91FF90EF9049
:10024000DF90CF90089580918B0181110DC082E0E5
:100250008093870184E08093880110928A01109234
:10026000890181E080938B0187E891E00895CF9325
:10027000DF931F92CDB7DEB76983DC01ED91FC916E
:100280000280F381E02D41E050E0BE016F5F7F4FBF
:1002900009950F90DF91CF91089583E08093E90055
:1002A0008091F200882319F08AE38093E800089592
:1002B0000E94E80090E00895CF93DF931F92CDB79E
:1002C000DEB7FC018485958597FD05C02FEF3FEFD4
:1002D000358724870BC0CE0101960E94BA00019792
:1002E00019F4898190E002C08FEF9FEF0F90DF91AA
:1002F000CF9108950F931F93CF93DF931F92CDB7A4
:10030000DEB78C01FC018485958597FF0EC0CE0178
:1003100001960E94BA00019719F4898190E002C009
:100320008FEF9FEFF80195878487F8018485958585
:100330000F90DF91CF911F910F910895FC0184855B
:10034000958597FD0BC09FB7F89482E08093E900F4
:100350008091F2009FBF90E0019608959FB7F894B6
:1003600082E08093E9008091F2009FBF90E00895C1
:10037000089580E090E0089540913101509132015C
:1003800020912F013091300142175307B4F490911E
:10039000E8009570E1F39091E80092FD19C0809318
:1003A000F100809131019091320101968F7399276C
:1003B000892B19F48EEF8093E800809131019091A0
:1003C00032010196909332018093310181E00895CA
:1003D00080E00895DF92EF92FF920F931F93CF93E7
:1003E000DF93D82EF92EE42E062F10E0C8010196D7
:1003F000880F0E94BC0183E00E94BC01CD2DDF2D3F
:100400000C0F1D1FC017D10789F0E7FE03C0FE01C6
:10041000849101C088810E94BC01F82E80E00E9476
:10042000BC018F2121968111EDCF01C081E0DF91C8
:10043000CF911F910F91FF90EF90DF900895DF9281
:10044000EF92FF920F931F93CF93DF93D82E8A01E1
:100450007B01E40EF51EEB01CE15DF0571F0D7FE32
:1004600003C0FE01849101C088810E94BC012196D5
:100470008111F2CF8FEF9FEF01C0C801DF91CF91C3
:100480001F910F91FF90EF90DF9008950F931F93AE
:10049000CF93DF931F92CDB7DEB782E0898342E42A
:1004A00050E06CEA70E080E80E941F020E94230185
:1004B000DC0112960D911C9113970115110589F01D
:1004C000D801ED91FC910280F381E02DBE016F5FB8
:1004D0007F4FC801099597FD04C0F801008511857B
:1004E000ECCF89810F90DF91CF911F910F910895EB
:1004F000615030F02091F100FC0120830196F8CF8B
:10050000289A84E68093930108953FB7F8948091E8
:100510002B0190912C01A0912D01B0912E0126B5B7
:10052000A89B05C02F3F19F00196A11DB11D3FBF2B
:10053000BA2FA92F982F8827820F911DA11DB11DB9
:10054000BC01CD0142E0660F771F881F991F4A95B5
:10055000D1F708958F929F92AF92BF92CF92DF9280
:10056000EF92FF926B017C010E9485024B015C01BE
:10057000C114D104E104F104F1F00E948502DC0110
:10058000CB0188199909AA09BB09883E9340A105A6
:10059000B10570F321E0C21AD108E108F10888EE34
:1005A000880E83E0981EA11CB11CC114D104E10483
:1005B000F10419F7DDCFFF90EF90DF90CF90BF905F
:1005C000AF909F908F9008958F929F92AF92BF921D
:1005D000CF92DF92EF92FF920F931F93CF93DF930F
:1005E0006C017B018A0180910B01882309F45CC0B6
:1005F00080919401882309F457C08091360180FFCF
:1006000005C08091E00082608093E000E801B12C99
:100610008AEFA82E93E0892E2AE3922E209711F4D8
:10062000BB20D9F10E94E80081110AC0AA94AA2037
:10063000D9F161E070E080E090E00E94AA02EECF84
:10064000282F30E0C217D3070CF48C2F9FB7F894F3
:100650008092E9002091E80025FF1DC0282F30E09E
:10066000C21BD30BF701815020F041914093F10060
:10067000FACFE20EF31EBB2019F09092E8000AC0F8
:100680008091E80085FD07C09092E800BB24B394F8
:10069000209709F0B12C9FBFC1CF5D9A84E680936B
:1006A00035011016110644F081E090E0F6019383C5
:1006B000828380E090E001C0C801DF91CF911F915B
:1006C0000F91FF90EF90DF90CF90BF90AF909F90F1
:1006D0008F9008950E944A071F920F920FB60F92B3
:1006E00011248F939F938091E1009091E100937F7B
:1006F0009093E10083FF0FC01092E90091E0909386
:10070000EB001092EC0092E39093ED0010929401B4
:1007100098E09093F00082FF20C093E09093E9006E
:100720009091F200992319F09AE39093E800909148
:100730003501992339F0909135019150909335010D
:10074000992389F190919301992339F09091930124
:10075000915090939301992341F184FF10C08091AF
:10076000E2008E7E81608093E2008091E1008F7EC6
:100770008093E100809136018E7E806111C080FF00
:1007800016C08091E2008E7E80618093E2008091AD
:10079000E1008E7E8093E100809136018E7E816043
:1007A0008093360104C05D98CDCF2898D6CF9F9115
:1007B0008F910F900FBE0F901F9018951F920F9260
:1007C0000FB60F921124CF92DF92EF92FF920F9308
:1007D0001F932F933F934F935F936F937F938F93C9
:1007E0009F93AF93BF93EF93FF93CF93DF93CDB7D7
:1007F000DEB76C97DEBFCDBF1092E9008091E800B4
:1008000083FFFBC168E0CE0145960E94780282EF2B
:100810008093E8008D8987FF05C09091E80090FFE4
:10082000FCCF03C09EEF9093E800982F907609F0DC
:10083000C6C09E894F89588D2F89F88C91110CC0A4
:10084000803829F4809134018093F10002C0109225
:10085000F1001092F10045C1913051F4811141C174
:100860004130510509F03DC1809134018D7F0BC0AD
:10087000933061F4811135C14130510509F031C126
:10088000809134018260809334012BC1953049F40A
:100890008091E80080FFFCCF822F80688093E30086
:1008A00020C1963009F05EC00B8D1C8D22E01092A5
:1008B000E9001092320110923101F21232C010920E
:1008C000300110922F010E94460299E0BE016F5F35
:1008D0007F4FDB01E92F1D92EA95E9F79983FA82B0
:1008E00091E09E8390EA98879AEF99872091310151
:1008F00030913201275F3F4F3C832B838D831092D1
:10090000E9001092320110923101109330010093EE
:100910002F0149E050E080E00E941F020E94460241
:10092000E0C01093300100932F010E942301DC01ED
:1009300012960D911C9113970115110509F4BBC076
:10094000D801ED91FC910480F581E02DBE016B5E34
:100950007F4FC8010995009709F0C7C0F8010085CD
:100960001185EACF973009F445C1983021F481E030
:100970008093F100B6C0993009F0B3C0837009F0DC
:1009800039C1EDE0F1E081E031E096E32081211111
:1009900009C08EE78093EA001092EA008F89809365
:1009A00094019FC08093E9003093EB002191209344
:1009B000EC009093ED008F5F873041F7EACF8B8D8D
:1009C0009C8D1092E90010923201109231019093A7
:1009D000300180932F01898D811153C08E899D89AB
:1009E000913A49F4813209F005C147E050E064E0F2
:1009F00071E080E0BBC0913209F0FCC0833269F441
:100A00008F89988DA0E0B0E0809300019093010160
:100A1000A0930201B093030164C0803269F4809115
:100A2000E80082FFFCCF67E084E091E00E9478025A
:100A30008BEF8093E80055C0823209F052C08F8955
:100A400080930B01EEEFFFE7859194918B3F9C4DD6
:100A500019F0E0E0F8E002C0EEEFFAE08091040166
:100A600090910501A0910601B0910701803B94404F
:100A7000A105B10509F09EC080910B0180FF79C0EE
:100A800099C00E942301FC01028113810115110507
:100A900009F4B0C0D801ED91FC910190F081E02DF6
:100AA000BE016B5E7F4FC801099581111AC0F80124
:100AB00000851185EBCFF1E0FF1609F44EC0F3E09D
:100AC000FF1298C08F89882309F44AC0823089F4C4
:100AD00040E86DE080E191E00E94EA01882309F49A
:100AE00089C08EEF8093E80088C018161906CCF3F1
:100AF00081C0813029F440E86BE084E091E0ECCFE4
:100B0000833009F077C00E942301DC011296ED903A
:100B1000FC9013978E010F5F1F4F6801E114F104E1
:100B200079F0D701ED91FC910680F781E02DB801B5
:100B3000C7010995080F111DF701E084F184EECF7C
:100B4000D8011C92F60101900020E9F73197BF010E
:100B50006C197D0940E0C601BFCF62EF70E002C0B2
:100B60006EEE70E0FB01449150E080E80E941F02AD
:100B7000B8CFEE3F2AE0F20751F0808191818737AC
:100B8000A7E79A0721F09093FF0A8093FE0A87E770
:100B900097E79183808380916000809333019BE08D
:100BA00088E10FB6F894A895809360000FBE9093EB
:100BB000600097CF808191818737974709F091CF67
:100BC000A8958091600088618093600080913301D6
:100BD00080936000EE3FBAE0FB0739F08091FE0A97
:100BE0009091FF0A918380837CCF1092FF0A10922C
:100BF000FE0A77CF81E28093EB006C960FB6F894F3
:100C0000DEBF0FBECDBFDF91CF91FF91EF91BF91BE
:100C1000AF919F918F917F916F915F914F913F9194
:100C20002F911F910F91FF90EF90DF90CF900F9039
:100C30000FBE0F901F9018951F920F920FB60F9234
:100C400011242F933F938F939F93AF93BF938091E2
:100C5000270190912801A0912901B0912A0130919A
:100C6000260123E0230F2D3720F40196A11DB11D8D
:100C700005C026E8230F0296A11DB11D2093260171
:100C80008093270190932801A0932901B0932A0112
:100C900080912B0190912C01A0912D01B0912E01FA
:100CA0000196A11DB11D80932B0190932C01A0935F
:100CB0002D01B0932E01BF91AF919F918F913F91E4
:100CC0002F910F900FBE0F901F901895E7E3F1E062
:100CD0001382128288EE93E0A0E0B0E084839583D3
:100CE000A683B78387E191E0918380838FEF9FEFA5
:100CF000958784870895789484B5826084BD84B58F
:100D0000816084BD85B5826085BD85B5816085BD06
:100D100080916E00816080936E00109281008091BE
:100D20008100826080938100809181008160809346
:100D3000810080918000816080938000809191008B
:100D400082608093910080919100816080939100F6
:100D5000809190008160809390008091C1008460B8
:100D60008093C1008091C10082608093C100809116
:100D7000C10081608093C1008091C3008160809335
:100D8000C3008091C00082608093C0008091C20047
:100D900081608093C20080917A00846080937A00A1
:100DA00080917A00826080937A0080917A008160DD
:100DB00080937A0080917A00806880937A00109204
:100DC000940110923401109236018091D700816015
:100DD0008093D70080EA8093D80089B5806189BD6F
:100DE00089B5826089BD09B400FEFDCF61E070E085
:100DF00080E090E00E94AA028091D8008F7C806100
:100E00008093D8008091E000807F8093E000809103
:100E1000E1008E7E8093E1008DE08093E200559AA0
:100E2000209A5D98289860ED77E080E090E00E943D
:100E3000AA028FEF8AB9CFEFDFE717EF80E0E82E45
:100E400080E0F82E1BB868EE73E080E090E00E942E
:100E5000AA02CBB968EE73E080E090E00E94AA029B
:100E6000DBB968EE73E080E090E00E94AA021BB953
:100E700068EE73E080E090E00E94AA02E114F104C1
:100E800009F30E940000DECFEE0FFF1F0590F491E2
:100E9000E02D099481E090E0F8940C944F07F894C9
:020EA000FFCF82
:100EA200FFFFFFFF00E100000000000000C18081A1
:100EB200000000000000003701E40258014D019ECD
:060EC200015C017A010051
:00000001FF

View File

@ -0,0 +1 @@
f76015e414b2ff5d1e59bc2388ac76db79ccfdce

39
include/README Normal file
View File

@ -0,0 +1,39 @@
This directory is intended for project header files.
A header file is a file containing C declarations and macro definitions
to be shared between several project source files. You request the use of a
header file in your project source file (C, C++, etc) located in `src` folder
by including it, with the C preprocessing directive `#include'.
```src/main.c
#include "header.h"
int main (void)
{
...
}
```
Including a header file produces the same results as copying the header file
into each source file that needs it. Such copying would be time-consuming
and error-prone. With a header file, the related declarations appear
in only one place. If they need to be changed, they can be changed in one
place, and programs that include the header file will automatically use the
new version when next recompiled. The header file eliminates the labor of
finding and changing all the copies as well as the risk that a failure to
find one copy will result in inconsistencies within a program.
In C, the usual convention is to give header files names that end with `.h'.
It is most portable to use only letters, digits, dashes, and underscores in
header file names, and at most one dot.
Read more about using header files in official GCC documentation:
* Include Syntax
* Include Operation
* Once-Only Headers
* Computed Includes
https://gcc.gnu.org/onlinedocs/cpp/Header-Files.html

46
lib/README Normal file
View File

@ -0,0 +1,46 @@
This directory is intended for project specific (private) libraries.
PlatformIO will compile them to static libraries and link into executable file.
The source code of each library should be placed in a an own separate directory
("lib/your_library_name/[here are source files]").
For example, see a structure of the following two libraries `Foo` and `Bar`:
|--lib
| |
| |--Bar
| | |--docs
| | |--examples
| | |--src
| | |- Bar.c
| | |- Bar.h
| | |- library.json (optional, custom build options, etc) https://docs.platformio.org/page/librarymanager/config.html
| |
| |--Foo
| | |- Foo.c
| | |- Foo.h
| |
| |- README --> THIS FILE
|
|- platformio.ini
|--src
|- main.c
and a contents of `src/main.c`:
```
#include <Foo.h>
#include <Bar.h>
int main (void)
{
...
}
```
PlatformIO Library Dependency Finder will find automatically dependent
libraries scanning project source files.
More information about PlatformIO Library Dependency Finder
- https://docs.platformio.org/page/librarymanager/ldf.html

14
platformio.ini Normal file
View File

@ -0,0 +1,14 @@
; PlatformIO Project Configuration File
;
; Build options: build flags, source filter
; Upload options: custom upload port, speed and extra flags
; Library options: dependencies, extra library storages
; Advanced options: extra scripting
;
; Please visit documentation for the other options and examples
; https://docs.platformio.org/page/projectconf.html
[env:micro]
platform = atmelavr
board = micro
framework = arduino

18
src/main.cpp Normal file
View File

@ -0,0 +1,18 @@
#include "Arduino.h"
void setup() {
delay(2000);
DDRD = 0xFF;
}
void loop() {
PORTD = 0x00;
delay(1000);
PORTD = 0xFF;
delay(1000);
PORTD = 0x7F;
delay(1000);
PORTD = 0xF7;
delay(1000);
}

11
test/README Normal file
View File

@ -0,0 +1,11 @@
This directory is intended for PlatformIO Unit Testing and project tests.
Unit Testing is a software testing method by which individual units of
source code, sets of one or more MCU program modules together with associated
control data, usage procedures, and operating procedures, are tested to
determine whether they are fit for use. Unit testing finds problems early
in the development cycle.
More information about PlatformIO Unit Testing:
- https://docs.platformio.org/page/plus/unit-testing.html