Home
last modified time | relevance | path

Searched refs:target_periph (Results 1 – 2 of 2) sorted by relevance

/hal_gigadevice-latest/gd32a50x/standard_peripheral/source/
Dgd32a50x_trigsel.c38 #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
[all …]
/hal_gigadevice-latest/gd32a50x/standard_peripheral/include/
Dgd32a50x_trigsel.h202 void trigsel_init(trigsel_periph_enum target_periph, trigsel_source_enum trigger_source);
204 uint8_t trigsel_trigger_source_get(trigsel_periph_enum target_periph);
206 void trigsel_register_lock_set(trigsel_periph_enum target_periph);
208 FlagStatus trigsel_register_lock_get(trigsel_periph_enum target_periph);