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
Unknown Object (File)
Fri, Mar 14, 4:27 PM
Unknown Object (File)
Thu, Feb 20, 8:27 PM
Unknown Object (File)
Thu, Feb 20, 8:09 PM
Unknown Object (File)
Feb 19 2025, 12:22 AM
Unknown Object (File)
Feb 18 2025, 1:51 AM
Unknown Object (File)
Feb 2 2025, 4:38 PM
Unknown Object (File)
Jan 26 2025, 3:43 PM
Unknown Object (File)
Jan 23 2025, 12:08 PM
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
Lint Skipped
Unit
Tests Skipped

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
205–207 ↗(On Diff #4134)

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

Fix the off by one bug.

sys/dev/iicbus/ds1307.c
205–207 ↗(On Diff #4134)

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).