APP=initial is compiled without default.c
This commit is contained in:
parent
5a55da7f76
commit
477dfcf98a
|
@ -3,6 +3,11 @@
|
||||||
##########################################################################
|
##########################################################################
|
||||||
|
|
||||||
OBJS =
|
OBJS =
|
||||||
|
|
||||||
|
ifeq "$(APP)" "initial"
|
||||||
|
NODEFAULT = y
|
||||||
|
endif
|
||||||
|
|
||||||
ifndef NODEFAULT
|
ifndef NODEFAULT
|
||||||
OBJS += default.o
|
OBJS += default.o
|
||||||
endif
|
endif
|
||||||
|
|
|
@ -11,6 +11,9 @@
|
||||||
|
|
||||||
void main_initial(void) {
|
void main_initial(void) {
|
||||||
char key=BTN_NONE;
|
char key=BTN_NONE;
|
||||||
|
|
||||||
|
systickInit(SYSTICKSPEED);
|
||||||
|
|
||||||
gpioSetValue (RB_LED0, 0);
|
gpioSetValue (RB_LED0, 0);
|
||||||
gpioSetValue (RB_LED1, 0);
|
gpioSetValue (RB_LED1, 0);
|
||||||
gpioSetValue (RB_LED2, 0);
|
gpioSetValue (RB_LED2, 0);
|
||||||
|
@ -89,6 +92,7 @@ void main_initial(void) {
|
||||||
void tick_initial(void){
|
void tick_initial(void){
|
||||||
static int foo=0;
|
static int foo=0;
|
||||||
static int toggle=0;
|
static int toggle=0;
|
||||||
|
incTimer();
|
||||||
if(foo++>80){
|
if(foo++>80){
|
||||||
toggle=1-toggle;
|
toggle=1-toggle;
|
||||||
foo=0;
|
foo=0;
|
||||||
|
|
Loading…
Reference in New Issue