aboutsummaryrefslogtreecommitdiffstats
path: root/testhal/STM32F4xx/I2C/main.c
diff options
context:
space:
mode:
authorgdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4>2013-08-24 08:22:49 +0000
committergdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4>2013-08-24 08:22:49 +0000
commit237a87e071aa0bb89ba3e90f453cdde712c4a53c (patch)
tree2064e01339d9827ef61f809c0135e6795ff8472f /testhal/STM32F4xx/I2C/main.c
parent613386635e578364e9bbc07a4bd8f57c8f661094 (diff)
downloadChibiOS-237a87e071aa0bb89ba3e90f453cdde712c4a53c.tar.gz
ChibiOS-237a87e071aa0bb89ba3e90f453cdde712c4a53c.tar.bz2
ChibiOS-237a87e071aa0bb89ba3e90f453cdde712c4a53c.zip
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/branches/kernel_3_dev@6215 35acf78f-673a-0410-8e92-d51de3d6d3f4
Diffstat (limited to 'testhal/STM32F4xx/I2C/main.c')
-rw-r--r--testhal/STM32F4xx/I2C/main.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/testhal/STM32F4xx/I2C/main.c b/testhal/STM32F4xx/I2C/main.c
index e83a98ffd..b90feb138 100644
--- a/testhal/STM32F4xx/I2C/main.c
+++ b/testhal/STM32F4xx/I2C/main.c
@@ -109,7 +109,7 @@ static const I2CConfig i2cfg2 = {
* Application entry point.
*/
int main(void) {
- msg_t status = RDY_OK;
+ msg_t status = MSG_OK;
systime_t tmo = MS2ST(4);
/*
@@ -143,7 +143,7 @@ int main(void) {
status = i2cMasterTransmitTimeout(&I2CD2, mma8451_addr, txbuf, 2, rxbuf, 0, tmo);
i2cReleaseBus(&I2CD2);
- if (status != RDY_OK){
+ if (status != MSG_OK){
errors = i2cGetErrors(&I2CD2);
}
@@ -159,7 +159,7 @@ int main(void) {
status = i2cMasterTransmitTimeout(&I2CD2, mma8451_addr, txbuf, 1, rxbuf, 6, tmo);
i2cReleaseBus(&I2CD2);
- if (status != RDY_OK){
+ if (status != MSG_OK){
errors = i2cGetErrors(&I2CD2);
}