Random header image... Refresh for more!
Visitors

free invisible counter
Partner sites
http://consigliere.sk
--------------------------- led-svetla.sk
---------------------------
multi.xeres.cz

IQRF platform seems to have a very nice progress and there is also some changes according compilation from command line.

Old script which was posted some months ago seems not to work because of new TR-52 modules. Option for CC5X compiler was updated. Here is newest enhanced version of script. You can compile and also clean a target.

Usage:

1. compile E01-TX.c for TR21 types of modules

./build.sh  TR21A E01-TX.c

2. clean generated file by CC5X compiler

./build.sh clean E01-TX.c

Enjoy :)

code:

#!/bin/bash
# first argument is TR module (TR21A, TR31B, TR52B...)
# second argument is file name to compile

## check arguments
if [ "$1" == "" ] || [ "$2" == "" ]; then
echo "usage :"
echo ""
echo "./build.sh <module type> <file to compile> "
echo ""
echo "module type is TR module (TR21A, TR31B, TR52B...) or "
echo "\"clean\" to clean target"

echo "file to compile (or clean) is file with c extension"
exit
fi

##remove compiled files
if [ "$1" == "clean" ]; then
FILE="$2"
RM=${FILE%%.*}
rm "$RM.hex" "$RM.fcs" "$RM.occ" "$RM.var"
exit
fi

## compile
wine CC5X.exe -a -bu -Q -Vn -cif -D"$1" "$2"

Leave a Reply