X-Git-Url: https://hackdaworld.org/gitweb/?a=blobdiff_plain;f=betty%2Fspi.h;fp=betty%2Fspi.h;h=c84a8cdc0b2177b882afc77aed2e742a294d8b9a;hb=b4ca71fc214ba3c58cec25661ba1f81cf7b1b871;hp=0000000000000000000000000000000000000000;hpb=d6814c7408b23db8a441f731b44d4b638df24c64;p=my-code%2Farm.git diff --git a/betty/spi.h b/betty/spi.h new file mode 100644 index 0000000..c84a8cd --- /dev/null +++ b/betty/spi.h @@ -0,0 +1,22 @@ +/* + * spi-h - spi header file + * + * author: hackbard@hackdaworld.org + * + */ + +#ifndef SPI_H +#define SPI_H + +#include "lpc2xxx.h" +#include "types.h" + +/* defines */ +#define SPI_MASTER (1<<0) +#define SPI_SLAVE (1<<1) + +/* function prototypes */ +void spi1_init(u8 width,u8 type,u8 div); +void spi1_send(u16 data); + +#endif