The old "one function per config" system is depricated for quite a while now...
This is a small RTC example project.