diff options
author | barthess <barthess@35acf78f-673a-0410-8e92-d51de3d6d3f4> | 2011-08-05 17:24:23 +0000 |
---|---|---|
committer | barthess <barthess@35acf78f-673a-0410-8e92-d51de3d6d3f4> | 2011-08-05 17:24:23 +0000 |
commit | 6ee04cf23282fff92b088ac6f408e5233eb3aa75 (patch) | |
tree | 4d1e7e5d7611dc0e26f277486adb91c00e036352 /testhal/STM32/I2C/main.c | |
parent | 4bcff1c283004b10e7a39e855da996621f9eec6d (diff) | |
download | ChibiOS-6ee04cf23282fff92b088ac6f408e5233eb3aa75.tar.gz ChibiOS-6ee04cf23282fff92b088ac6f408e5233eb3aa75.tar.bz2 ChibiOS-6ee04cf23282fff92b088ac6f408e5233eb3aa75.zip |
I2C. Added template of synchronouse deriver. It does not work for a moment.
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/branches/i2c_dev@3190 35acf78f-673a-0410-8e92-d51de3d6d3f4
Diffstat (limited to 'testhal/STM32/I2C/main.c')
-rw-r--r-- | testhal/STM32/I2C/main.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/testhal/STM32/I2C/main.c b/testhal/STM32/I2C/main.c index ce8cb5522..b828953c5 100644 --- a/testhal/STM32/I2C/main.c +++ b/testhal/STM32/I2C/main.c @@ -68,7 +68,7 @@ static msg_t PollMax1236Thread(void *arg) { systime_t time = chTimeNow();
while (TRUE) {
- time += MS2ST(20);
+ time += MS2ST(200);
/* Call reading function */
read_max1236();
chThdSleepUntil(time);
@@ -83,7 +83,7 @@ static msg_t PollAccelThread(void *arg) { systime_t time = chTimeNow();
while (TRUE) {
- time += MS2ST(2);
+ time += MS2ST(20);
request_acceleration_data();
chThdSleepUntil(time);
}
|