I2C. Minor changes in testhal.

git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@4572 35acf78f-673a-0410-8e92-d51de3d6d3f4
This commit is contained in:
barthess 2012-08-14 18:11:35 +00:00
parent 023c9515e4
commit cd0be9838e
1 changed files with 5 additions and 5 deletions

View File

@ -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 */
}