Subversion Repositories Code-Repo

Compare Revisions

Regard whitespace Rev 225 → Rev 226

/PIC Stuff/Cerebot_32MX7_LED_Cube/SPI1.h
1,12 → 1,13
#ifndef SPI1_H
#define SPI1_H
 
#define SPI1_BUFFER_SIZE 300
#define SPI1_BUFFER_OUT_SIZE 300
//#define SPI1_BUFFER_IN_SIZE 10
 
#define SPI_WRITE_ONLY
 
typedef struct {
char buffer_out[SPI1_BUFFER_SIZE];
char buffer_out[SPI1_BUFFER_OUT_SIZE];
int buffer_out_ind;
int buffer_out_len;
 
16,7 → 17,7
 
void SPI1_Init(SPI1_DATA *data, void (*rx_callback)(char));
// Note: SPI1_Write() writes MSB -> LSB!
int SPI1_Write(unsigned char *array, unsigned int count, void (*tx_callback)(void));
int SPI1_Write(char *array, int length, void (*tx_callback)(void));
 
#endif /* SPI1_H */