Lines Matching full:top
46 uint32_t top; member
85 if (data->top <= 1) { in nxp_mrt_start()
86 /* Zephyr API says default should be max top value */ in nxp_mrt_start()
89 data->top = config->info.max_top_value; in nxp_mrt_start()
92 /* Start with previously configured top value (if already running this has no effect) */ in nxp_mrt_start()
93 base->CHANNEL[channel_id].INTVAL = data->top; in nxp_mrt_start()
95 LOG_DBG("MRT@%p channel %d started with top value %d", base, channel_id, data->top); in nxp_mrt_start()
118 /* By default in Zephyr API, the counter resets on changing top value */ in nxp_mrt_set_top_value()
125 data->top = cfg->ticks; in nxp_mrt_set_top_value()
134 LOG_DBG("Set MRT@%p channel %d top value to %d", base, channel_id, data->top); in nxp_mrt_set_top_value()
140 LOG_WRN("MRT@%p channel %d received requested top value %d which is " in nxp_mrt_set_top_value()
151 /* Sets the top value. If we need to reset, LOAD bit does this */ in nxp_mrt_set_top_value()
155 LOG_DBG("Changed MRT@%p channel %d top value while active to %d", in nxp_mrt_set_top_value()