Subversion Repositories Code-Repo

Compare Revisions

Ignore whitespace Rev 119 → Rev 122

/PIC Stuff/PIC_27J13/uart.h
1,9 → 1,9
#ifndef __uart_h
#define __uart_h
 
#define MAXUARTBUF 64
#define MAXUARTBUF 128
 
// FIFO circular buffer
#define UART1_BREAK_CHAR 0x0D //(CR)
 
typedef struct __UART_DATA {
unsigned char buffer_in[MAXUARTBUF];
10,6 → 10,7
unsigned char buffer_in_read_ind;
unsigned char buffer_in_write_ind;
unsigned char buffer_in_len;
unsigned char buffer_in_len_tmp;
 
unsigned char buffer_out[MAXUARTBUF];
unsigned char buffer_out_ind;
23,5 → 24,6
void UART1_Send_Interrupt_Handler(void);
void UART1_WriteS(const rom char *fmt, ...);
void UART1_WriteB(const char *msg, unsigned char length);
unsigned char UART1_Read(char *buffer);
unsigned char UART1_Buffer_Len(void);
unsigned char UART1_Read_Buffer(unsigned char *buffer);
#endif