mirror of
https://github.com/apache/nuttx.git
synced 2026-05-28 03:45:50 +08:00
arm: Fix DS1307 initialization for common STM32 logic
Signed-off-by: Rodrigo Sim rcsim10@gmail.com
This commit is contained in:
@@ -63,7 +63,7 @@ int board_ds1307_initialize(int busno)
|
|||||||
struct i2c_master_s *i2c;
|
struct i2c_master_s *i2c;
|
||||||
int ret;
|
int ret;
|
||||||
|
|
||||||
rtcinfo("Initialize I2C%d\n", DS1307_I2C_BUS);
|
rtcinfo("Initialize I2C%d\n", busno);
|
||||||
|
|
||||||
/* Initialize I2C */
|
/* Initialize I2C */
|
||||||
|
|
||||||
@@ -81,7 +81,7 @@ int board_ds1307_initialize(int busno)
|
|||||||
if (ret < 0)
|
if (ret < 0)
|
||||||
{
|
{
|
||||||
rtcerr("ERROR: Failed to bind I2C%d to the DS1307 RTC driver\n",
|
rtcerr("ERROR: Failed to bind I2C%d to the DS1307 RTC driver\n",
|
||||||
DS1307_I2C_BUS);
|
busno);
|
||||||
return -ENODEV;
|
return -ENODEV;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user