Subversion Repositories Projects

Rev

Rev 284 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 284 Rev 294
Line 57... Line 57...
57
#include "main.h"
57
#include "main.h"
58
#include "timer0.h"
58
#include "timer0.h"
59
#include "uart0.h"
59
#include "uart0.h"
60
#include "uart1.h"
60
#include "uart1.h"
61
#include "fat16.h"
61
#include "fat16.h"
-
 
62
#include "sdc.h"
62
#include "led.h"
63
#include "led.h"
63
#include "menu.h"
64
#include "menu.h"
64
#include "printf_P.h"
65
#include "printf_P.h"
65
#include "analog.h"
66
#include "analog.h"
66
#include "ubx.h"
67
#include "ubx.h"
Line 100... Line 101...
100
        LEDRED_OFF;
101
        LEDRED_OFF;
101
        #ifdef USE_FOLLOWME
102
        #ifdef USE_FOLLOWME
102
        LEDGRN_ON;
103
        LEDGRN_ON;
103
        #endif
104
        #endif
Line 104... Line -...
104
 
-
 
105
 
-
 
106
 
105
 
107
        #ifdef USE_SDLOGGER
106
        #ifdef USE_SDLOGGER
108
        printf("\n\rHW: SD-Logger");
107
        printf("\n\rHW: SD-Logger");
109
        #endif
108
        #endif
110
        #ifdef USE_FOLLOWME
109
        #ifdef USE_FOLLOWME
111
        printf("\n\rHW: Follow-Me");
110
        printf("\n\rHW: Follow-Me");
112
        #endif
111
        #endif
113
        printf("\n\rFollow Me\n\rSoftware:V%d.%d%c ",VERSION_MAJOR, VERSION_MINOR, VERSION_PATCH + 'a');
112
        printf("\n\rFollow Me\n\rSoftware:V%d.%d%c ",VERSION_MAJOR, VERSION_MINOR, VERSION_PATCH + 'a');
114
        printf("\n\r==============================");
113
        printf("\n\r==============================");
Line 115... Line -...
115
        printf("\n\r");
-
 
116
 
-
 
117
        /*
-
 
118
        // try to initialize the SD-Card File system
-
 
119
        printf("\n\rInit FAT16...");
-
 
120
        if(FAT16_Init())
-
 
121
        {
-
 
122
                printf("ok");
-
 
123
        }
-
 
124
        else
-
 
125
        {
-
 
Line 126... Line 114...
126
                printf("failed");
114
        printf("\n\r");
127
        }*/
115
 
128
 
116
 
Line 134... Line 122...
134
 
122
 
135
        GPS_Timer = SetDelay(1000);
123
        GPS_Timer = SetDelay(1000);
136
        while (1)
124
        while (1)
137
        {
125
        {
-
 
126
                // check for button action
-
 
127
                if(GetButton())
138
                // check for button action
128
                {
-
 
129
                        //BeepTime = 200;
-
 
130
                        printf("\n\rInit FAT16...");
-
 
131
                        if(SDC_Init())
-
 
132
                        {
-
 
133
                                printf("ok");
-
 
134
                        }
-
 
135
                        else
-
 
136
                        {
-
 
137
                                printf("failed");
-
 
138
                        }
Line 139... Line 139...
139
                if(GetButton()) BeepTime = 200;
139
                }
140
 
140
 
141
                // restart ADConversion if ready
141
                // restart ADConversion if ready
142
                if(ADReady)
142
                if(ADReady)