Subversion Repositories Code-Repo

Rev

Details | Last modification | View Log | RSS feed

Rev Author Line No. Line
212 Kevin 1
#ifndef UART1_H
2
#define UART1_H
3
 
4
#define UART1_BUFFER_SIZE 128
5
 
6
typedef struct {
7
    void (*rx_callback)(char c);
8
 
9
    char buffer_out[UART1_BUFFER_SIZE];
10
    int buffer_out_ind;
11
    int buffer_out_len;
12
} UART1_DATA;
13
 
14
void UART1_Init(UART1_DATA *data, void (*rx_callback)(char));
15
int  UART1_Write(char *string, int length);
16
 
17
#endif  /* UART1_H */