PICPilot 2.1
Main Page
Data Structures
Files
File List
Globals
All
Data Structures
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Macros
Autopilot
AttitudeManager
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
19
int
checkDataLinkConnection
(){
20
//TODO: Should actually implement this properly
21
return
1;
22
}
net.h
List of defines required for XBEE communication and telemetry.
checkDataLinkConnection
int checkDataLinkConnection()
Definition:
net_common.c:19
UART2.h
Settings for UART2 communication used for telemetry link.
InitUART2
void InitUART2()
Initializes the UART2 connection.
Definition:
UART2.c:13
initDataLink
int initDataLink(void)
net_outbound.c
Definition:
net_common.c:11
main.h
Generated on Sun Mar 5 2017 00:02:40 for PICPilot by
1.8.7