Hi and welcome to LQ.
A couple of suggestions are to look at sample projects for the Raspberry Pi related to a RTC. There is source code and helpful blog information which can help you down that direction.
No offense to your instructor, but somewhere along the line, .... It needs to talk to /dev/rtc! For instance there are userspace utilities to set time and save it to the RTC, and I believe that while you have a default, you can also specify the exact resource within the command argument, and technically speaking, you are accessing that resource. So their guidance is a minor amount confusing to their students. Perhaps what they ought to have said was that you should do this entirely within the userspace and left it at that.
|