Subversion Repositories Code-Repo

Compare Revisions

Ignore whitespace Rev 230 → Rev 231

/PIC Stuff/Cerebot_32MX7_LED_Cube/UART1.h
4,14 → 4,14
#define UART1_BUFFER_SIZE 128
 
typedef struct {
void (*rx_callback)(char c);
void (*rx_callback)(uint8_t c);
 
char buffer_out[UART1_BUFFER_SIZE];
int buffer_out_ind;
int buffer_out_len;
uint8_t buffer_out[UART1_BUFFER_SIZE];
uint32_t buffer_out_ind;
uint32_t buffer_out_len;
} UART1_DATA;
 
void UART1_Init(UART1_DATA *data, void (*rx_callback)(char));
int UART1_Write(char *string, int length);
void UART1_Init(UART1_DATA *data, void (*rx_callback)(uint8_t));
uint8_t UART1_Write(uint8_t *string, uint32_t length);
 
#endif /* UART1_H */