Squashed 'third_party/allwpilib_2016/' content from commit 7f61816

Change-Id: If9d9245880859cdf580f5d7f77045135d0521ce7
git-subtree-dir: third_party/allwpilib_2016
git-subtree-split: 7f618166ed253a24629934fcf89c3decb0528a3b
diff --git a/hal/lib/Athena/spilib/spi-lib.h b/hal/lib/Athena/spilib/spi-lib.h
new file mode 100644
index 0000000..b5c2a7a
--- /dev/null
+++ b/hal/lib/Athena/spilib/spi-lib.h
@@ -0,0 +1,19 @@
+#ifndef __SPI_LIB_H__

+#define __SPI_LIB_H__

+

+#ifdef __cplusplus

+extern "C" {

+#endif

+int spilib_open(const char *device);

+void spilib_close(int handle);

+int spilib_setspeed(int handle, uint32_t speed);

+int spilib_setbitsperword(int handle, uint8_t bpw);

+int spilib_setopts(int handle, int msb_first, int sample_on_trailing, int clk_idle_high);

+int spilib_read(int handle, char *recv_buf, int32_t size);

+int spilib_write(int handle, const char *send_buf, int32_t size);

+int spilib_writeread(int handle, const char *send_buf, char *recv_buf, int32_t size);

+#ifdef __cplusplus

+}

+#endif

+

+#endif /* __SPI_LIB_H__ */
\ No newline at end of file