/* \method prescaler() Get or set the prescaler for the timer.  */
STATIC mp_obj_t pyb_timer_prescaler(size_t n_args, const mp_obj_t *args)
/* \method prescaler() Get or set the prescaler for the timer.  */
STATIC mp_obj_t pyb_timer_prescaler(size_t n_args, const mp_obj_t *args)
{
        return mp_obj_new_int(self->tim.Instance->PSC & 0xffff);
    } else {
        self->tim.Instance->PSC = mp_obj_get_int(args[1]) & 0xffff;
        return mp_const_none;
    }
}