aboutsummaryrefslogtreecommitdiffstats
path: root/libmaple/libmaple_types.h
diff options
context:
space:
mode:
authorPerry Hung <iperry@alum.mit.edu>2010-04-22 02:36:01 -0400
committerPerry Hung <iperry@alum.mit.edu>2010-04-24 03:53:22 -0400
commit17e0e5edde60e9bf2aa4d52173ad7d47d6d6da75 (patch)
tree9ca6bcbea7e3183c206f16d5012a6b1797597ce1 /libmaple/libmaple_types.h
parentcb3284fad5347fc9622a170d6e3cd870fd9e2846 (diff)
downloadlibrambutan-17e0e5edde60e9bf2aa4d52173ad7d47d6d6da75.tar.gz
librambutan-17e0e5edde60e9bf2aa4d52173ad7d47d6d6da75.zip
Initial SPI Polling implementation.
Initial commit of a polling-based SPI driver. The driver is limited to synchronous, blocking sends and a 8-bit data frame format. Tested on SPI1 and SPI2. Other peripherals are temporarily disabled, and the rx function is untested until I find a good peripheral to test everything on.
Diffstat (limited to 'libmaple/libmaple_types.h')
-rw-r--r--libmaple/libmaple_types.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/libmaple/libmaple_types.h b/libmaple/libmaple_types.h
index ca98f6f..d49f95a 100644
--- a/libmaple/libmaple_types.h
+++ b/libmaple/libmaple_types.h
@@ -43,5 +43,7 @@ typedef long long int64;
typedef void (*voidFuncPtr)(void);
+#define __io volatile
+
#endif