Revision 97017dbb modules/NUCLEO-L476RG/module.h
modules/NUCLEO-L476RG/module.h | ||
---|---|---|
169 | 169 |
/* SCL shall be delyed twice as long as SDA, but longer than 0. */ \ |
170 | 170 |
moduleHalI2c3Config.timingr |= ((((moduleHalI2c3Config.timingr & I2C_TIMINGR_SDADEL_Msk) >> I2C_TIMINGR_SDADEL_Pos) * 2) + 1) << I2C_TIMINGR_SCLDEL_Pos; \ |
171 | 171 |
/* now we can start the I2C driver */ \ |
172 |
chSysLock(); \ |
|
173 |
palSetPadMode(GPIOC, GPIOC_ARD_A4, PAL_MODE_ALTERNATE(4)); \ |
|
174 |
palSetPadMode(GPIOC, GPIOC_ARD_A5, PAL_MODE_ALTERNATE(4)); \ |
|
175 |
chSysUnlock(); \ |
|
172 | 176 |
i2cStart(&MODULE_HAL_I2C3, &moduleHalI2c3Config); \ |
173 | 177 |
} |
174 | 178 |
#else |
Also available in: Unified diff