I2C fast mode plus support library. This library works on mbed-11U24's p28&p27 only.
A sample code for I2C Fast mode plus operation.
Warning!
This code works on mbed-LPC11U24 only.
Import programI2C_FmPlus_Hello
Sample code for "I2C_FmPlus" library. I2C fast mode plus support library. This library works on mbed-11U24's p28&p27 only.
Revision 2:16a05acd675b, committed 2014-12-02
- Comitter:
- okano
- Date:
- Tue Dec 02 04:01:28 2014 +0000
- Parent:
- 1:6d19e8abca69
- Commit message:
- "#error" is added to limit the target platform
Changed in this revision
I2C_FmPlus.cpp | Show annotated file Show diff for this revision Revisions of this file |
diff -r 6d19e8abca69 -r 16a05acd675b I2C_FmPlus.cpp --- a/I2C_FmPlus.cpp Tue Dec 02 03:57:29 2014 +0000 +++ b/I2C_FmPlus.cpp Tue Dec 02 04:01:28 2014 +0000 @@ -9,6 +9,10 @@ #include "mbed.h" #include "I2C_FmPlus.h" +#ifndef TARGET_LPC11U24_401 +#error this version pnly supports mbed-LPC11U24 +#endif + I2C_FmPlus::I2C_FmPlus( PinName sda, PinName scl ) : I2C( sda, scl ), _frequency( 1000 * 1000 ), _ratio( 0.4 ) { LPC_IOCON->PIO0_4 &= ~0x300;