APP=initial is compiled without default.c

This commit is contained in:
Stefan `Sec` Zehl 2011-07-27 01:02:26 +02:00
parent 5a55da7f76
commit 477dfcf98a
2 changed files with 9 additions and 0 deletions

View File

@ -3,6 +3,11 @@
##########################################################################
OBJS =
ifeq "$(APP)" "initial"
NODEFAULT = y
endif
ifndef NODEFAULT
OBJS += default.o
endif

View File

@ -11,6 +11,9 @@
void main_initial(void) {
char key=BTN_NONE;
systickInit(SYSTICKSPEED);
gpioSetValue (RB_LED0, 0);
gpioSetValue (RB_LED1, 0);
gpioSetValue (RB_LED2, 0);
@ -89,6 +92,7 @@ void main_initial(void) {
void tick_initial(void){
static int foo=0;
static int toggle=0;
incTimer();
if(foo++>80){
toggle=1-toggle;
foo=0;