mbed-src updated for BMD-200 evaluation board. Just pin numbers are updated.
Dependents: mbed_blinky-bmd-200 bmd-200_accel_demo firstRig
Fork of mbed-src by
Replacement for the "mbed" or "mbed-src" library when using the BMD-200 Evaluation kit. This library only remaps the pin names (i.e. LED1 points to p0.01 instead of p0.18, etc) as used by the BMD-200 Evaluation board (select the nRF51822_mkit platform). All other code is untouched.
Diff: common/I2C.cpp
- Revision:
- 212:34d62c0b2af6
- Parent:
- 13:0645d8841f51
- Child:
- 529:c320967f86b9
--- a/common/I2C.cpp Sun May 25 08:00:07 2014 +0100 +++ b/common/I2C.cpp Mon May 26 18:15:07 2014 +0100 @@ -21,10 +21,9 @@ I2C *I2C::_owner = NULL; -I2C::I2C(PinName sda, PinName scl) { +I2C::I2C(PinName sda, PinName scl) : _i2c(), _hz(100000) { // The init function also set the frequency to 100000 i2c_init(&_i2c, sda, scl); - _hz = 100000; // Used to avoid unnecessary frequency updates _owner = this;