Lines Matching refs:target_periph
38 #define TRIGSEL_TARGET_REG(target_periph) REG32(TRIGSEL + ((uint8_t)(target_periph) & BITS… argument
39 #define TRIGSEL_TARGET_PERIPH_SHIFT(target_periph) (((uint8_t)(target_periph) & BITS(0, 1)) << 3) … argument
40 …e TRIGSEL_TARGET_PERIPH_MASK(target_periph) ((uint32_t)(TRIGSEL_TARGET_INSEL0 << TRIGSEL_TARGET_P… argument
171 void trigsel_init(trigsel_periph_enum target_periph, trigsel_source_enum trigger_source) in trigsel_init() argument
174 if (RESET == trigsel_register_lock_get(target_periph)){ in trigsel_init()
175 TRIGSEL_TARGET_REG(target_periph) &= ~TRIGSEL_TARGET_PERIPH_MASK(target_periph); in trigsel_init()
176 …ARGET_REG(target_periph) |= ((uint32_t)trigger_source << TRIGSEL_TARGET_PERIPH_SHIFT(target_periph… in trigsel_init()
240 uint8_t trigsel_trigger_source_get(trigsel_periph_enum target_periph) in trigsel_trigger_source_get() argument
244 …_t)((TRIGSEL_TARGET_REG(target_periph) & TRIGSEL_TARGET_PERIPH_MASK(target_periph)) >> TRIGSEL_TAR… in trigsel_trigger_source_get()
309 void trigsel_register_lock_set(trigsel_periph_enum target_periph) in trigsel_register_lock_set() argument
312 TRIGSEL_TARGET_REG(target_periph) |= TRIGSEL_TARGET_LK; in trigsel_register_lock_set()
375 FlagStatus trigsel_register_lock_get(trigsel_periph_enum target_periph) in trigsel_register_lock_get() argument
377 if(0U != (TRIGSEL_TARGET_REG(target_periph) & TRIGSEL_TARGET_LK)){ in trigsel_register_lock_get()