/PIC Stuff/Cerebot_32MX7_LED_Cube/UART1.h |
---|
0,0 → 1,17 |
#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 */ |