rest of the last commit

This commit is contained in:
Wolfgang Hottgenroth
2016-10-21 16:26:48 +02:00
parent 651ee903b3
commit b429bebe94
3 changed files with 285 additions and 0 deletions

13
tools/insertMyCode.pl Executable file
View File

@ -0,0 +1,13 @@
#!/usr/bin/perl -w
while (<>) {
print $_;
print "#include \"main2.h\";\n" if m/USER CODE BEGIN Includes/;
print " my_setup_1();\n" if m/USER CODE BEGIN 1/;
print " my_setup_2();\n" if m/USER CODE BEGIN 2/;
print " my_loop();\n" if m/USER CODE BEGIN 3/;
}