/* Register a callback to be called every 'period' system ticks with 'param' parameter.
* returns the callback number, to be used to remove the callback from the table of callbacks.
* returns negative value on error.
+ * The callback will get the "global_wrapping_system_ticks" as argument, which wraps every 50 days
+ * or so with a 1ms tick
*/
int add_systick_callback(void (*callback) (uint32_t), uint16_t period)
{
/* Removes the main clock from the selected timer block */
void systick_timer_off(void);
-/* Register a callback to be called every 'period' system ticks with 'param' parameter.
+/* Register a callback to be called every 'period' system ticks.
* returns the callback number, to be used to remove the callback from the table of callbacks.
* returns negative value on error.
+ * The callback will get the "global_wrapping_system_ticks" as argument, which wraps every 50 days
+ * or so with a 1ms tick
*/
#define MAX_SYSTICK_CALLBACKS 4
int add_systick_callback(void (*callback) (uint32_t), uint16_t period);