mirror of
https://github.com/espressif/esp-idf.git
synced 2025-08-08 04:02:27 +00:00
fix(gpio): fix pu, pd, drv value incorrect from gpio_dump_io_configuration on esp32
Closes https://github.com/espressif/esp-idf/issues/14931
This commit is contained in:
@@ -594,21 +594,21 @@ esp_err_t gpio_dump_io_configuration(FILE *out_stream, uint64_t io_bit_mask);
|
||||
* @brief Get the configuration for an IO
|
||||
*
|
||||
* @param gpio_num GPIO number
|
||||
* @param pu Pull-up enabled or not
|
||||
* @param pd Pull-down enabled or not
|
||||
* @param ie Input enabled or not
|
||||
* @param oe Output enabled or not
|
||||
* @param od Open-drain enabled or not
|
||||
* @param drv Drive strength value
|
||||
* @param fun_sel IOMUX function selection value
|
||||
* @param sig_out Outputting peripheral signal index
|
||||
* @param slp_sel Pin sleep mode enabled or not
|
||||
* @param pu Pointer to accept the status of pull-up enabled or not, passing in NULL if this info is unwanted
|
||||
* @param pd Pointer to accept the status of pull-down enabled or not, passing in NULL if this info is unwanted
|
||||
* @param ie Pointer to accept the status of input enabled or not, passing in NULL if this info is unwanted
|
||||
* @param oe Pointer to accept the status of output enabled or not, passing in NULL if this info is unwanted
|
||||
* @param od Pointer to accept the status of open-drain enabled or not, passing in NULL if this info is unwanted
|
||||
* @param drv Pointer to accept the value of drive strength, passing in NULL if this info is unwanted
|
||||
* @param fun_sel Pointer to accept the value of IOMUX function selection, passing in NULL if this info is unwanted
|
||||
* @param sig_out Pointer to accept the index of outputting peripheral signal, passing in NULL if this info is unwanted
|
||||
* @param slp_sel Pointer to accept the status of pin sleep mode enabled or not, passing in NULL if this info is unwanted
|
||||
*
|
||||
* @return
|
||||
* - ESP_OK Success
|
||||
* - ESP_ERR_INVALID_ARG Parameter error
|
||||
*/
|
||||
esp_err_t gpio_get_io_config(uint32_t gpio_num,
|
||||
esp_err_t gpio_get_io_config(gpio_num_t gpio_num,
|
||||
bool *pu, bool *pd, bool *ie, bool *oe, bool *od, uint32_t *drv,
|
||||
uint32_t *fun_sel, uint32_t *sig_out, bool *slp_sel);
|
||||
|
||||
|
Reference in New Issue
Block a user