Ejemplo n.º 1
0
/* Configure the UART for communication with GPS receiver, toggle the multiplxer GPIO,
 * save data from GPS receiver, search for GPGGA string and extract latitude, longitude 
 * and altitude from this string. */
void gps_handler(void) {                    
	gps_uart_init();        
	PORTBbits.RB0 = 0;           // A/B // gps gets connected to UART port.    
	save_nmea_data();                            
	loc = search_gpgga(0);  
	ext_req_field(loc);             
}
Ejemplo n.º 2
0
void comms_init(void)
{
	cdcRxChar = false;
	
	// Start the internal UARTS
	gps_uart_init();	
	ntx2b_uart_init();
	ext_uart_init();
	
	// Start the DAC
	dac_enable(&MY_DAC);
	dac_init();
	
	// Initialise the NTX2B Modulation
		
	ntx2b_mod_enable(RTTY300);

	
	
}