Lab 1 Program C

Dependents:   Lab1C

Fork of mbed by -deleted-

Revision:
20:029aa53d7323
Parent:
11:1c1ebd0324fa
Child:
27:7110ebee3484
diff -r e6be4cd80aad -r 029aa53d7323 SPI.h
--- a/SPI.h	Tue May 18 16:04:21 2010 +0000
+++ b/SPI.h	Thu Jun 03 11:17:50 2010 +0000
@@ -1,5 +1,5 @@
 /* mbed Microcontroller Library - SPI
- * Copyright (c) 2006-2009 ARM Limited. All rights reserved. 
+ * Copyright (c) 2010 ARM Limited. All rights reserved. 
  * sford
  */
 
@@ -48,7 +48,7 @@
      * Pin Options:
      *  (5, 6, 7) or (11, 12, 13)
      *
-     *  mosi or miso can be specfied as NOT_CONNECTED if not used
+     *  mosi or miso can be specfied as NC if not used
      */
     SPI(PinName mosi, PinName miso, PinName sclk, const char *name = NULL);
 
@@ -83,7 +83,8 @@
      *  value - Data to be sent to the SPI slave
      *  returns - Response from the SPI slave
     */
-    int write(int value);
+    virtual int write(int value);
+
 
 #ifdef MBED_RPC
     virtual const struct rpc_method *get_rpc_methods();
@@ -94,7 +95,7 @@
 
 	SPIName _spi;
 	
-	void aquire();
+	void aquire(void);
     static SPI *_owner; 
     int _bits;
     int _mode;