updated all the library code to have sensible _init behavior.
Almost all of the library components have a global variable which gets set after init and the functions inside will fail with an error code if init has not been called. Also, the init functions themselves check this variable and will bail out without doing any damage if that init has already been called
/* Predefined times for prescale_opt in time.c.
To make you own, know that a pulse is 1/16th of a second. You cannot get less than this. To get more, you need
to know how many 16ths of a second are in the time you want. (Time_desired * 16 = prescaler_opt)
/** @brief Delay execution for the specified time **/
void delay_ms(int ms) ;
/** @brief Enable the realtime clock **/
void rtc_init(int prescale_opt, void (*rtc_func)(void));
int rtc_init(int prescale_opt, void (*rtc_func)(void));
/** @brief Reset the counter of the realtime clock **/
/** @brief Get the value of the realtime clock. **/
Also available in: Unified diff