Upload Code
loading-left
loading loading loading
loading-right

Loading

Profile
No self-introduction
codes (1)
RaspberryPi RTC with ioctl control (I2C) M41T8X
no vote
This programs read and write a real time clock on a raspberrypi (raspbian) via I2C bus. The device is for Tomson CSF M41T8X devices. It uses 'real' ioctl commands and can also set the lsystem clock (same functions as hwclock). It was tested with an T41M82 RTC chip.  If you use the system to read the RTC, you lose control over the I2C bus, and cannot access any other device on the common I2C bus. This programs allows you to set/get the time from the battery backup device and set system time, it also allows you to set the RTC chip from the system time, and allows you to use the I2C bus for other uses . All options are displayed if run with -h as parameter. The program is well documented and doxygen ready. It was created using the QT, and the user can only run qmake, and then make to regenerate the code. A test script is also included. It should however be easy to adapt the makefile for the standard gcc compiler, and it could be used on any linux based system
creatron
2016-08-23
0
1
No more~