Merge pull request #839 from firmwaremodules/bugfix/simplelink-gpio-bitmask
Fix simplelink gpio hysteresis bitmask
This commit is contained in:
commit
a1cba5607c
@ -96,7 +96,7 @@ to_hal_cfg(PIN_Config pin_cfg, gpio_hal_pin_cfg_t *cfg)
|
|||||||
/* Input config */
|
/* Input config */
|
||||||
if(pin_cfg & PIN_BM_INPUT_MODE) {
|
if(pin_cfg & PIN_BM_INPUT_MODE) {
|
||||||
/* Hysteresis config */
|
/* Hysteresis config */
|
||||||
if((pin_cfg & PIN_BM_HYSTERESIS) == PIN_HYSTERESIS) {
|
if((pin_cfg & PIN_BM_HYSTERESIS) == PIN_BM_HYSTERESIS) {
|
||||||
*cfg |= GPIO_HAL_PIN_CFG_HYSTERESIS;
|
*cfg |= GPIO_HAL_PIN_CFG_HYSTERESIS;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user