Blame | Last modification | View Log | Download | RSS feed
#ifndef UART1_H#define UART1_H#define UART1_BUFFER_SIZE 128typedef 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 */