Line 23... |
Line 23... |
23 |
#include "global.h" // include our global settings |
23 |
#include "global.h" // include our global settings |
24 |
#include "uart2.h" // include dual-uart function library |
24 |
#include "uart2.h" // include dual-uart function library |
25 |
#include "rprintf.h" // include printf function library |
25 |
#include "rprintf.h" // include printf function library |
26 |
#include "timer.h" // include timer function library (timing, PWM, etc) |
26 |
#include "timer.h" // include timer function library (timing, PWM, etc) |
27 |
#include "gps.h" // include gps data support |
27 |
#include "gps.h" // include gps data support |
28 |
#include "tsip.h" // include TSIP gps packet handling |
28 |
//#include "tsip.h" // include TSIP gps packet handling |
29 |
#include "nmea.h" // include NMEA gps packet handling |
29 |
#include "nmea.h" // include NMEA gps packet handling |
30 |
#include "vt100.h" // include VT100 terminal commands |
30 |
#include "vt100.h" // include VT100 terminal commands |
- |
|
31 |
//#include "utm.h" // Lat Lon to UTM conversion |
31 |
|
32 |
|
32 |
#include <util/delay.h> |
33 |
#include <util/delay.h> |
33 |
|
34 |
|
34 |
|
- |
|
35 |
// LCD Library |
35 |
// LCD Library |
36 |
#include "lcd_hd44780.h" |
36 |
#include "lcd_hd44780.h" |
37 |
|
37 |
|
38 |
static int lcd_putc_stream(char c, FILE *unused) |
38 |
static int lcd_putc_stream(char c, FILE *unused) |
39 |
{ |
39 |
{ |
Line 118... |
Line 118... |
118 |
// initialize gps library |
118 |
// initialize gps library |
119 |
gpsInit(); |
119 |
gpsInit(); |
120 |
// initialize gps packet decoder |
120 |
// initialize gps packet decoder |
121 |
nmeaInit(); |
121 |
nmeaInit(); |
122 |
|
122 |
|
123 |
/* |
- |
|
124 |
DDRA = 0b11110101; // sets PA0 O, PA1 I, PA2 O |
- |
|
125 |
cbi(PORTA, 0); // sets PC0 to output a LOW |
- |
|
126 |
sbi(PORTA, 2); // sets PC2 to output a HIGH |
- |
|
127 |
*/ |
- |
|
128 |
DDRD = 0b10100000; // sets PD7 O, PD6 I, PD5 O |
123 |
DDRD = 0b10100000; // sets PD7 O, PD6 I, PD5 O |
129 |
cbi(PORTD, 7); // sets PD7 to output a LOW |
124 |
cbi(PORTD, 7); // sets PD7 to output a LOW |
130 |
sbi(PORTD, 5); // sets PD5 to output a HIGH |
125 |
sbi(PORTD, 5); // sets PD5 to output a HIGH |
131 |
|
126 |
|
132 |
// begin gps packet processing loop |
127 |
// begin gps packet processing loop |