APP=tester now supports systick-functions, too
This commit is contained in:
parent
292d1ba36f
commit
e182a2c179
|
@ -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
|
||||
|
|
|
@ -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 "};"
|
||||
|
||||
|
||||
|
|
|
@ -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();
|
||||
};
|
||||
|
||||
|
||||
|
|
Loading…
Reference in New Issue