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: X_NUCLEO_IKS01A1 X_NUCLEO_6180XA1 1-DoorCloser 1-DoorCloser ... more
Fork of X_NUCLEO_COMMON by
Generic mbed Extensions used by STM Expansion Board Firmware Packages
DbgMCU
Helper class DbgMCU providing a default constructor which enables debugging on STM32 MCUs while using sleep modes.
DevI2C
Helper class DevI2C providing functions for multi-register I2C communication common for a series of I2C devices.
DevSPI
Helper class DevSPI providing functions for SPI communication common for a series of SPI devices.
Revision 2:c1cac955d4bd, committed 2015-04-14
- Comitter:
- Wolfgang Betz
- Date:
- Tue Apr 14 15:32:06 2015 +0200
- Parent:
- 1:ca975408dd4e
- Child:
- 3:bc5fc631e9c5
- Commit message:
- X_NUCLEO_IKS01A1: first version of main & hts221 component
Changed in this revision
| DevI2C/DevI2C.h | Show annotated file Show diff for this revision Revisions of this file |
--- a/DevI2C/DevI2C.h Thu Apr 02 13:23:09 2015 +0200
+++ b/DevI2C/DevI2C.h Tue Apr 14 15:32:06 2015 +0200
@@ -80,11 +80,7 @@
ret = write(DeviceAddr, (const char*)tmp, NumByteToWrite+1, 0);
- if(ret) {
- error("%s: dev = %d, reg = %d, num = %d\n",
- __func__, DeviceAddr, RegisterAddr, NumByteToWrite);
- return -1;
- }
+ if(ret) return -1;
return 0;
}
@@ -111,11 +107,7 @@
ret = read(DeviceAddr, (char*)pBuffer, NumByteToRead, 0);
}
- if(ret) {
- error("%s: dev = %d, reg = %d, num = %d\n",
- __func__, DeviceAddr, RegisterAddr, NumByteToRead);
- return -1;
- }
+ if(ret) return -1;
return 0;
}
};
