Page MenuHomeFreeBSD

Add a DS1307 i2c real-time clock driver
ClosedPublic

Authored by loos on Mar 7 2015, 2:39 PM.
Tags
None
Referenced Files
F108262605: D2022.id.diff
Thu, Jan 23, 5:32 AM
F108260887: D2022.diff
Thu, Jan 23, 5:03 AM
Unknown Object (File)
Wed, Jan 8, 7:27 PM
Unknown Object (File)
Oct 23 2024, 1:43 PM
Unknown Object (File)
Oct 23 2024, 1:19 PM
Unknown Object (File)
Sep 24 2024, 9:50 AM
Unknown Object (File)
Sep 17 2024, 11:33 AM
Unknown Object (File)
Sep 9 2024, 9:45 AM
Subscribers

Details

Summary

Add a i2c driver for the Maxim DS1307 real-time clock.

The SQW/OUT pin control is made with sysctl(8) knobs.

Tested on: RPi

Diff Detail

Repository
rS FreeBSD src repository - subversion
Lint
No Lint Coverage
Unit
No Test Coverage

Event Timeline

loos retitled this revision from to Add a DS1307 i2c real-time clock driver.
loos updated this object.
loos edited the test plan for this revision. (Show Details)
loos added reviewers: manpages, rpaulo, ian.
sys/dev/iicbus/ds1307.c
206–208

There's an off by one here. You need to use ntimes() - 1;

Fix the off by one bug.

sys/dev/iicbus/ds1307.c
206–208

Indeed. Fixed on new version.

rpaulo edited edge metadata.

Thanks for fixing your other drivers!

This revision is now accepted and ready to land.Mar 11 2015, 10:55 PM
loos updated this revision to Diff 4308.

Closed by commit rS280300 (authored by @loos).