This commit is contained in:
Wolfgang Hottgenroth
2017-05-26 18:45:18 +02:00
commit 27f62c4c27
186 changed files with 394089 additions and 0 deletions

14
tools/insertMyCode.pl Executable file
View File

@ -0,0 +1,14 @@
#!/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/;
print " my_errorHandler();\n" if m/USER CODE BEGIN Error_Handler/;
}