/FollowMe/main.c |
64,7 → 64,6 |
#include "printf_P.h" |
#include "analog.h" |
#include "ubx.h" |
#include "button.h" |
|
#ifdef USE_FOLLOWME |
int16_t UBat = 120; |
94,7 → 93,6 |
UBX_Init(); |
USART1_Init(); |
ADC_Init(); |
Button_Init(); |
// enable interrupts global |
sei(); |
LEDRED_OFF; |
135,9 → 133,6 |
GPS_Timer = SetDelay(1000); |
while (1) |
{ |
// check for button action |
if(GetButton()) BeepTime = 200; |
|
// restart ADConversion if ready |
if(ADReady) |
{ |
/FollowMe/makefile |
76,7 → 76,7 |
|
########################################################################################################## |
# List C source files here. (C dependencies are automatically generated.) |
SRC = main.c uart0.c uart1.c printf_P.c timer0.c menu.c led.c ubx.c analog.c button.c |
SRC = main.c uart0.c uart1.c printf_P.c timer0.c menu.c led.c ubx.c analog.c |
#ssc.c sdc.c fat16.c |
|
########################################################################################################## |