Subversion Repositories Code-Repo

Compare Revisions

Ignore whitespace Rev 129 → Rev 130

/PIC Stuff/PIC_27J13/uart.c/uart.c
4,7 → 4,9
#include <string.h>
#include <stdio.h>
 
#pragma udata UART1_BUFFER
static UART_DATA uart_1_data;
#pragma udata
static UART_DATA *uart_1_data_p = &uart_1_data;
 
void UART1_Init() {
45,9 → 47,9
// // Configure the PPS USART ports
//
// // UART2 RX Pin RP5
// RPINR16 = 5; // 5 is PPS RP5
// RPINR16 = PPS_UART2_RX; // 5 is PPS RP5
// // UART2 TX Pin RP6
// RPOR6 = 6; // 6 is TX2/CK2 (EUSART2 Asynchronous Transmit/Asynchronous Clock Output)
// PPS_UART2_TX = 6; // 6 is TX2/CK2 (EUSART2 Asynchronous Transmit/Asynchronous Clock Output)
//
// Open2USART(USART_TX_INT_OFF & // Interrupt on TX off
// USART_RX_INT_ON & // Interrupt on RX on