Subversion Repositories Code-Repo

Rev

Rev 231 | Go to most recent revision | Blame | Compare with Previous | Last modification | View Log | RSS feed

#ifndef UART1_H
#define UART1_H

#define UART1_BUFFER_SIZE 128

typedef struct {
    void (*rx_callback)(char c);

    char buffer_out[UART1_BUFFER_SIZE];
    int buffer_out_ind;
    int buffer_out_len;
} UART1_DATA;

void UART1_Init(UART1_DATA *data, void (*rx_callback)(char));
int  UART1_Write(char *string, int length);

#endif  /* UART1_H */