Maxim Integrated's IoT development kit
Dependencies: MAX30101 MAX30003 MAX113XX_Pixi MAX30205 max32630fthr USBDevice
tools/unix_run@8:2b6bfa8d9e36, 2018-04-27 (annotated)
- Committer:
- Mahir Ozturk
- Date:
- Fri Apr 27 14:57:49 2018 +0300
- Revision:
- 8:2b6bfa8d9e36
Add run scripts for windows and unix environments
Change-Id: Ibffad1bbcfbea0e5e15af02559f3ca95d273930f
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
Mahir Ozturk |
8:2b6bfa8d9e36 | 1 | #!/bin/sh |
Mahir Ozturk |
8:2b6bfa8d9e36 | 2 | |
Mahir Ozturk |
8:2b6bfa8d9e36 | 3 | TOOLSPATH="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)" |
Mahir Ozturk |
8:2b6bfa8d9e36 | 4 | |
Mahir Ozturk |
8:2b6bfa8d9e36 | 5 | PROJECTPATH="$(cd "$TOOLSPATH/.." && pwd)" |
Mahir Ozturk |
8:2b6bfa8d9e36 | 6 | |
Mahir Ozturk |
8:2b6bfa8d9e36 | 7 | PROJECTNAME=${PROJECTPATH##*/} |
Mahir Ozturk |
8:2b6bfa8d9e36 | 8 | |
Mahir Ozturk |
8:2b6bfa8d9e36 | 9 | source $PROJECTPATH/.mbed |
Mahir Ozturk |
8:2b6bfa8d9e36 | 10 | |
Mahir Ozturk |
8:2b6bfa8d9e36 | 11 | BINARY=$PROJECTPATH/BUILD/$TARGET/$TOOLCHAIN/$PROJECTNAME.bin |
Mahir Ozturk |
8:2b6bfa8d9e36 | 12 | |
Mahir Ozturk |
8:2b6bfa8d9e36 | 13 | if [ ! -f $BINARY ]; then |
Mahir Ozturk |
8:2b6bfa8d9e36 | 14 | echo Error: File "$BINARY" does not exist! |
Mahir Ozturk |
8:2b6bfa8d9e36 | 15 | exit 1 |
Mahir Ozturk |
8:2b6bfa8d9e36 | 16 | fi |
Mahir Ozturk |
8:2b6bfa8d9e36 | 17 | |
Mahir Ozturk |
8:2b6bfa8d9e36 | 18 | python $PROJECTPATH/tools/mbed_run.py $BINARY |