Computes Euler angles
Fork of X_NUCLEO_COMMON by
Diff: DevI2C/DevI2C.h
- Revision:
- 20:7ae143567941
- Parent:
- 19:12be3dfc15fd
- Child:
- 21:0dbcdb8dab03
diff -r 12be3dfc15fd -r 7ae143567941 DevI2C/DevI2C.h --- a/DevI2C/DevI2C.h Mon Oct 10 06:55:02 2016 +0000 +++ b/DevI2C/DevI2C.h Mon Apr 10 15:13:26 2017 +0000 @@ -58,26 +58,6 @@ */ DevI2C(PinName sda, PinName scl) : I2C(sda, scl) {} - /** Create a DevI2C Master interface, connected to the specified pins and set their pin modes - * - * @param sda I2C data line pin - * @param sda I2C data pin mode - * @param scl I2C clock line pin - * @param scl I2C clock pin mode - * - * @note this is a workaround to provide a constructor which currently - * is somehow missing in the I2C base class and it's underlying - * implementations. In some circumstances (e.g. while debugging) - * where long latencies between the initialization of the i2c - * interface in the I2C constructor and the setting of the pin - * modes in the beyond constructor might occur, the i2c - * communication might be compromised. - */ - DevI2C(PinName sda, int mode_sda, PinName scl, int mode_scl) : I2C(sda, scl) { - pin_mode(sda, (PinMode)mode_sda); - pin_mode(scl, (PinMode)mode_scl); - } - /** * @brief Writes a buffer towards the I2C peripheral device. * @param pBuffer pointer to the byte-array data to send