Skip to content

Commit

Permalink
Update gpio_hal.h
Browse files Browse the repository at this point in the history
  • Loading branch information
IhorNehrutsa authored Nov 27, 2024
1 parent eb2584b commit 1286b54
Showing 1 changed file with 0 additions and 46 deletions.
46 changes: 0 additions & 46 deletions components/hal/include/hal/gpio_hal.h
Original file line number Diff line number Diff line change
Expand Up @@ -52,52 +52,6 @@ typedef struct {
#define gpio_hal_get_io_config(hal, gpio_num, pu, pd, ie, oe, od, drv, fun_sel, sig_out, slp_sel) \
gpio_ll_get_io_config((hal)->dev, gpio_num, pu, pd, ie, oe, od, drv, fun_sel, sig_out, slp_sel)


/**
* @brief Return pull-up status on GPIO.
*
* @param hal Context of the HAL layer
* @param gpio_num GPIO number
* @return if GPIO gpio_num`s FUN_PU is true
*/
#define gpio_hal_pullup_is_enabled(hal, gpio_num) gpio_ll_pullup_is_enabled((hal)->dev, gpio_num)

/**
* @brief Return pull-down status on GPIO.
*
* @param hal Context of the HAL layer
* @param gpio_num GPIO number
* @return if GPIO gpio_num`s FUN_PD is true
*/
#define gpio_hal_pulldown_is_enabled(hal, gpio_num) gpio_ll_pulldown_is_enabled((hal)->dev, gpio_num)

/**
* @brief Return slp-sel status on GPIO.
*
* @param hal Context of the HAL layer
* @param gpio_num GPIO number
* @return if GPIO gpio_num`s SLP_SEL is true
*/
#define gpio_hal_sleep_sel_is_enabled(hal, gpio_num) gpio_ll_sleep_sel_is_enabled((hal)->dev, gpio_num)

/**
* @brief Return slp-pull-up status on GPIO.
*
* @param hal Context of the HAL layer
* @param gpio_num GPIO number
* @return if GPIO gpio_num`s SLP_PU is true
*/
#define gpio_hal_sleep_pullup_is_enabled(hal, gpio_num) gpio_ll_sleep_pullup_is_enabled((hal)->dev, gpio_num)

/**
* @brief Return slp-pull-down status on GPIO.
*
* @param hal Context of the HAL layer
* @param gpio_num GPIO number
* @return if GPIO gpio_num`s SLP_PD is true
*/
#define gpio_hal_sleep_pulldown_is_enabled(hal, gpio_num) gpio_ll_sleep_pulldown_is_enabled((hal)->dev, gpio_num)

/**
* @brief Enable pull-up on GPIO.
*
Expand Down

0 comments on commit 1286b54

Please sign in to comment.