refactor(gpio): derive SDM registers from GPIO_EXT

Use GPIO_EXT.sigma_delta as the SDM register base on GPIO_EXT-based targets and remove standalone SDM symbols to eliminate manual offset/address maintenance risks.
This commit is contained in:
morris
2026-04-08 15:07:27 +08:00
parent 572e732aca
commit e69f2c8346
22 changed files with 7 additions and 22 deletions
@@ -13,7 +13,7 @@
#include "soc/gpio_ext_reg.h"
// Get SDM register base address with giving group number
#define SDM_LL_GET_HW(group_id) ((group_id == 0) ? (&SDM) : NULL)
#define SDM_LL_GET_HW(group_id) ((group_id == 0) ? ((gpio_sd_dev_t *)(void *)&GPIO_EXT.sigma_delta) : NULL)
#define SDM_LL_PRESCALE_MAX (GPIO_EXT_SD0_PRESCALE_V + 1)