pal_diagnostics: Timer callback take a parameter