jerabaul29 / OpenMetBuoy-v2021a

An easy to build, affordable, customizable, open source instrument for oceanographic measurements - with global Iridium coverage
MIT License
44 stars 7 forks source link

use RTC instead of 1s interrupt + volatile memory #4

Open jerabaul29 opened 2 years ago

jerabaul29 commented 2 years ago

For now I am setting the RTC to generate interrupts at 1s intervals, and counting with an IRC the number of seconds. As pointed by @gauteh , I could probably just do everything directly with the RTC, without using an additional IRC. That may require some more HAL calls / setup.

gauteh commented 2 years ago

You don't need all the TIMER stuff from that example.

jerabaul29 commented 2 years ago

Thanks :) . Agree that looks better, but also a bit worried that there are many moving parts, a bit afraid that I can easily shoot myself in the foot if I set a non self consistent bunch of options at the same time.