Rev 1872 | Rev 1955 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 1872 | Rev 1887 | ||
---|---|---|---|
Line 134... | Line 134... | ||
134 | // timer = SetDelay(500); |
134 | // timer = SetDelay(500); |
135 | // while(!CheckDelay(timer)); |
135 | // while(!CheckDelay(timer)); |
Line 136... | Line 136... | ||
136 | 136 | ||
137 | // Instead, while away the time by flashing the 2 outputs: |
137 | // Instead, while away the time by flashing the 2 outputs: |
138 | // First J16, then J17. Makes it easier to see which is which. |
138 | // First J16, then J17. Makes it easier to see which is which. |
139 | timer = SetDelay(200); |
139 | timer = setDelay(200); |
140 | OUTPUT_SET(0,1); |
140 | OUTPUT_SET(0,1); |
141 | GRN_OFF; |
141 | GRN_OFF; |
142 | RED_ON; |
142 | RED_ON; |
143 | while (!CheckDelay(timer)) |
143 | while (!checkDelay(timer)) |
Line 144... | Line 144... | ||
144 | ; |
144 | ; |
145 | 145 | ||
146 | timer = SetDelay(200); |
146 | timer = setDelay(200); |
147 | OUTPUT_SET(0,0); |
147 | OUTPUT_SET(0,0); |
148 | OUTPUT_SET(1,1); |
148 | OUTPUT_SET(1,1); |
149 | RED_OFF; |
149 | RED_OFF; |
150 | GRN_ON; |
150 | GRN_ON; |
Line 151... | Line 151... | ||
151 | while (!CheckDelay(timer)) |
151 | while (!checkDelay(timer)) |
152 | ; |
152 | ; |
153 | 153 | ||
154 | timer = SetDelay(200); |
154 | timer = setDelay(200); |
Line 155... | Line 155... | ||
155 | while (!CheckDelay(timer)) |
155 | while (!checkDelay(timer)) |
Line 184... | Line 184... | ||
184 | #ifdef USE_MK3MAG |
184 | #ifdef USE_MK3MAG |
185 | printf("\n\rSupport for MK3MAG Compass"); |
185 | printf("\n\rSupport for MK3MAG Compass"); |
186 | #endif |
186 | #endif |
Line 187... | Line 187... | ||
187 | 187 | ||
188 | #if (defined (USE_MK3MAG)) |
188 | #if (defined (USE_MK3MAG)) |
189 | if(CPUType == ATMEGA644P) printf("\n\rSupport for GPS at 2nd UART"); |
189 | if(CPUType == ATMEGA644P) printf("\n\r2 UART"); |
190 | else printf("\n\rSupport for GPS at 1st UART"); |
190 | else printf("\n\r1 UART"); |
Line 191... | Line 191... | ||
191 | #endif |
191 | #endif |
Line 192... | Line 192... | ||
192 | 192 | ||
Line 242... | Line 242... | ||
242 | usart0_TransmitTxData(); |
242 | usart0_TransmitTxData(); |
243 | } |
243 | } |
Line 244... | Line 244... | ||
244 | 244 | ||
Line 245... | Line 245... | ||
245 | usart0_ProcessRxData(); |
245 | usart0_ProcessRxData(); |
246 | 246 | ||
247 | if (CheckDelay(timer)) { |
247 | if (checkDelay(timer)) { |
248 | if (UBat <= UBAT_AT_5V) { |
248 | if (UBat <= UBAT_AT_5V) { |
249 | // Do nothing. The voltage on the input side of the regulator is <5V; |
249 | // Do nothing. The voltage on the input side of the regulator is <5V; |
250 | // we must be running off USB power. Keep it quiet. |
250 | // we must be running off USB power. Keep it quiet. |
Line 254... | Line 254... | ||
254 | 254 | ||
255 | #ifdef USE_NAVICTRL |
255 | #ifdef USE_NAVICTRL |
256 | SPI_StartTransmitPacket(); |
256 | SPI_StartTransmitPacket(); |
257 | SendSPI = 4; |
257 | SendSPI = 4; |
258 | #endif |
258 | #endif |
259 | timer = SetDelay(20); // every 20 ms |
259 | timer = setDelay(20); // every 20 ms |
260 | } |
260 | } |
261 | output_update(); |
261 | output_update(); |
Line 262... | Line 262... | ||
262 | } |
262 | } |