Use an `assert()` to make sure that `periph_timer` was successfully initialized.
Co-authored-by: Joakim Nohlgård <joakim.nohlgard@eistec.se>