Subversion Repositories Code-Repo

Rev

Blame | Last modification | View Log | RSS feed

#ifndef __uart_h
#define __uart_h

#define MAXUARTBUF 1
#if (MAXUARTBUF > MSGLEN)
#define MAXUARTBUF MSGLEN
#endif

typedef struct __UART_DATA {
    unsigned char buffer[MAXUARTBUF];
    unsigned char buflen;
} UART_DATA;

void uart_init(UART_DATA *);
void uart_recv_interrupt_handler(void);

#endif