Merge pull request #2066 from e190/master

修复I2C和RTC中的粗心BUG
This commit is contained in:
Bernard Xiong 2018-12-13 17:31:16 +08:00 committed by GitHub
commit 698f9a91bd
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View File

@ -134,7 +134,7 @@ static rt_err_t rt_rtc_control(rt_device_t dev, int cmd, void *args)
{
case RT_DEVICE_CTRL_RTC_GET_TIME:
*(rt_uint32_t *)args = get_rtc_timestamp();
LOG_D("RTC: get rtc_time %x\n", *(rt_uint32_t *)args());
LOG_D("RTC: get rtc_time %x\n", *(rt_uint32_t *)args);
break;
case RT_DEVICE_CTRL_RTC_SET_TIME:

View File

@ -32,7 +32,7 @@ static const struct stm32_soft_i2c_config soft_i2c_config[] =
I2C2_BUS_CONFIG,
#endif
#ifdef BSP_USING_I2C3
I2C2_BUS_CONFIG,
I2C3_BUS_CONFIG,
#endif
};