Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependents: cc3000_ping_demo_try_2
Fork of mbed by
Diff: SPI.h
- Revision:
- 20:029aa53d7323
- Parent:
- 11:1c1ebd0324fa
- Child:
- 27:7110ebee3484
--- 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;
