APP=tester now supports systick-functions, too

This commit is contained in:
Stefan `Sec` Zehl 2011-07-26 01:18:31 +02:00
parent 292d1ba36f
commit e182a2c179
3 changed files with 12 additions and 10 deletions

View File

@ -81,7 +81,7 @@ $(LIBFILE): $(OBJS) $(WRAPOBJ)
$(CC) $(CFLAGS) -o $@ $<
clean:
rm -f $(OBJS) $(WRAPOBJ) $(WRAPSRC) $(LIBFILE) *.o
rm -f $(OBJS) $(WRAPOBJ) $(WRAPSRC) $(LIBFILE) *.o tester/*.o
%.c:
@echo

View File

@ -58,4 +58,13 @@ done
echo "NULL"
echo "};"
echo "inline void generated_tick(void){"
for f in $* ; do
grep -h '^void tick_' $f|sed 's/^void //;s/(.*//'|while read a ; do
echo "$a();"
done
done
echo "return;"
echo "};"

View File

@ -17,15 +17,8 @@ void main_tester(void) {
gotoISP();
};
void no_tick_tester(void){
static int foo=0;
static int toggle=0;
if(foo++>80){
toggle=1-toggle;
foo=0;
gpioSetValue (RB_LED0, toggle);
};
return;
void tick_tester(void){
generated_tick();
};