From cd0be9838e1bb9624854ba1128af7ee55cae63c5 Mon Sep 17 00:00:00 2001 From: barthess Date: Tue, 14 Aug 2012 18:11:35 +0000 Subject: I2C. Minor changes in testhal. git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@4572 35acf78f-673a-0410-8e92-d51de3d6d3f4 --- testhal/STM32F1xx/I2C/i2c_pns.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'testhal/STM32F1xx') diff --git a/testhal/STM32F1xx/I2C/i2c_pns.c b/testhal/STM32F1xx/I2C/i2c_pns.c index 96ac9a0bd..a64dab546 100644 --- a/testhal/STM32F1xx/I2C/i2c_pns.c +++ b/testhal/STM32F1xx/I2C/i2c_pns.c @@ -28,8 +28,8 @@ /* I2C1 */ static const I2CConfig i2cfg1 = { OPMODE_I2C, - 360000, - FAST_DUTY_CYCLE_16_9, + 400000, + FAST_DUTY_CYCLE_2, }; @@ -43,9 +43,9 @@ void I2CInit_pns(void){ palSetPadMode(IOPORT2, 6, PAL_MODE_STM32_ALTERNATE_OPENDRAIN); palSetPadMode(IOPORT2, 7, PAL_MODE_STM32_ALTERNATE_OPENDRAIN); - /* startups. Pauses added just to be safe */ - chThdSleepMilliseconds(100); - init_lis3(); + chThdSleepMilliseconds(100); /* Just to be safe. */ + + init_lis3(); /* accelerometer init */ } -- cgit v1.2.3