initial, with blinking led
This commit is contained in:
15
tools/insertMyCode.sh
Executable file
15
tools/insertMyCode.sh
Executable file
@ -0,0 +1,15 @@
|
||||
#!/bin/sh
|
||||
|
||||
if [ ! -f main.c ]; then
|
||||
echo "no main.c available"
|
||||
exit 1
|
||||
fi
|
||||
if [ -f main.c-bak ]; then
|
||||
echo "main.c-bak already available, delete manually"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
/opt/CubeMXImporter/cubemximporter.py ../ ../cube/newcar/
|
||||
mv main.c main.c-bak
|
||||
cat main.c-bak | ../tools/insertMyCode.pl > main.c
|
||||
|
Reference in New Issue
Block a user