net_common.c
Go to the documentation of this file.
1 
5 #include "net.h"
6 
7 #include "main.h"
8 #include "UART2.h"
9 
10 // Initialize the data link
11 int initDataLink(void) {
12  InitUART2();
13  IEC1bits.U2TXIE = 1; // Enable Transmit Interrupt
14  IEC1bits.U2RXIE = 1; // Enable RX Interrupt
15 
16  return 0;
17 }
18 
20  //TODO: Should actually implement this properly
21  return 1;
22 }
List of defines required for XBEE communication and telemetry.
int checkDataLinkConnection()
Definition: net_common.c:19
Settings for UART2 communication used for telemetry link.
void InitUART2()
Initializes the UART2 connection.
Definition: UART2.c:13
int initDataLink(void)
net_outbound.c
Definition: net_common.c:11