feat(gpio): support to attach gpio signals internally

This commit is contained in:
laokaiyao
2026-03-31 12:26:35 +08:00
committed by morris
parent 1ec13a92d2
commit b5c68aa481
3 changed files with 21 additions and 6 deletions
@@ -412,6 +412,16 @@ void gpio_hal_matrix_in(gpio_hal_context_t *hal, uint32_t gpio_num, uint32_t sig
*/
void gpio_hal_matrix_out(gpio_hal_context_t *hal, uint32_t gpio_num, uint32_t signal_idx, bool out_inv, bool oen_inv);
/**
* @brief Connect two GPIOs through the GPIO matrix by a signal.
*
* @param hal Context of the HAL layer
* @param sig_src_pin Source GPIO number
* @param sig_dst_pin Destination GPIO number
* @param signal_idx Peripheral signal index (tagged as input attribute). One of the ``SIG_IN_FUNC`` signals in ``soc/gpio_sig_map.h``.
*/
void gpio_hal_matrix_interconnect(gpio_hal_context_t *hal, uint32_t sig_src_pin, uint32_t sig_dst_pin, uint32_t signal_idx);
#if SOC_GPIO_SUPPORT_FORCE_HOLD
/**
* @brief Force hold all digital gpio pads (including those powered by VDD3P3_RTC power domain).