diff options
author | gdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4> | 2013-04-01 16:16:18 +0000 |
---|---|---|
committer | gdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4> | 2013-04-01 16:16:18 +0000 |
commit | 356fb1a2a03fa00622580077007622d5c5e62555 (patch) | |
tree | 9044349351cd922c62f2343ce377b4e548086e55 /testhal/STM32F37x | |
parent | 0ebb7959d58256bea8e65b2cbed282e840297880 (diff) | |
download | ChibiOS-356fb1a2a03fa00622580077007622d5c5e62555.tar.gz ChibiOS-356fb1a2a03fa00622580077007622d5c5e62555.tar.bz2 ChibiOS-356fb1a2a03fa00622580077007622d5c5e62555.zip |
I2Cv2 driver tested on STM32F37x.
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@5526 35acf78f-673a-0410-8e92-d51de3d6d3f4
Diffstat (limited to 'testhal/STM32F37x')
-rw-r--r-- | testhal/STM32F37x/I2C/main.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/testhal/STM32F37x/I2C/main.c b/testhal/STM32F37x/I2C/main.c index 96295089b..244de9b49 100644 --- a/testhal/STM32F37x/I2C/main.c +++ b/testhal/STM32F37x/I2C/main.c @@ -92,13 +92,12 @@ int main(void) { static const uint8_t cmd[] = {0, 0};
uint8_t data[16];
- chThdSleepMilliseconds(10);
msg = i2cMasterTransmitTimeout(&I2CD2, 0x52, cmd, sizeof(cmd),
data, sizeof(data), TIME_INFINITE);
+ msg = msg;
if (msg != RDY_OK)
chSysHalt();
for (i = 0; i < 256; i++) {
- chThdSleepMilliseconds(10);
msg = i2cMasterReceiveTimeout(&I2CD2, 0x52,
data, sizeof(data), TIME_INFINITE);
if (msg != RDY_OK)
|