diff --git a/targets/TARGET_Maxim/TARGET_MAX32620C/mxc/lp.c b/targets/TARGET_Maxim/TARGET_MAX32620C/mxc/lp.c index d0d26c1c01..c16343eee5 100644 --- a/targets/TARGET_Maxim/TARGET_MAX32620C/mxc/lp.c +++ b/targets/TARGET_Maxim/TARGET_MAX32620C/mxc/lp.c @@ -179,7 +179,7 @@ int LP_ConfigGPIOWakeUpDetect(const gpio_cfg_t *gpio, unsigned int act_high, lp_ return result; } -uint8_t LP_IsGPIOWakeUpSource(const gpio_cfg_t *gpio) +int LP_IsGPIOWakeUpSource(const gpio_cfg_t *gpio) { uint8_t gpioWokeUp = 0; diff --git a/targets/TARGET_Maxim/TARGET_MAX32620C/mxc/lp.h b/targets/TARGET_Maxim/TARGET_MAX32620C/mxc/lp.h index 55487f5a8e..521996c7ec 100644 --- a/targets/TARGET_Maxim/TARGET_MAX32620C/mxc/lp.h +++ b/targets/TARGET_Maxim/TARGET_MAX32620C/mxc/lp.h @@ -138,7 +138,7 @@ int LP_ClearGPIOWakeUpDetect(const gpio_cfg_t *gpio); * nonzero = at least one of the gpio passed in triggered a wake up * the bit set represents which pin is the wake up source */ -uint8_t LP_IsGPIOWakeUpSource(const gpio_cfg_t *gpio); +int LP_IsGPIOWakeUpSource(const gpio_cfg_t *gpio); /** * @brief Wake on USB plug or unplug diff --git a/targets/TARGET_Maxim/TARGET_MAX32625/mxc/lp.c b/targets/TARGET_Maxim/TARGET_MAX32625/mxc/lp.c index fd1a0889e3..ce8944d478 100644 --- a/targets/TARGET_Maxim/TARGET_MAX32625/mxc/lp.c +++ b/targets/TARGET_Maxim/TARGET_MAX32625/mxc/lp.c @@ -178,7 +178,7 @@ int LP_ConfigGPIOWakeUpDetect(const gpio_cfg_t *gpio, unsigned int act_high, lp_ return result; } -uint8_t LP_IsGPIOWakeUpSource(const gpio_cfg_t *gpio) +int LP_IsGPIOWakeUpSource(const gpio_cfg_t *gpio) { uint8_t gpioWokeUp = 0; diff --git a/targets/TARGET_Maxim/TARGET_MAX32625/mxc/lp.h b/targets/TARGET_Maxim/TARGET_MAX32625/mxc/lp.h index 1c1e73846e..4a5017fdea 100644 --- a/targets/TARGET_Maxim/TARGET_MAX32625/mxc/lp.h +++ b/targets/TARGET_Maxim/TARGET_MAX32625/mxc/lp.h @@ -138,7 +138,7 @@ int LP_ClearGPIOWakeUpDetect(const gpio_cfg_t *gpio); * nonzero = at least one of the gpio passed in triggered a wake up * the bit set represents which pin is the wake up source */ -uint8_t LP_IsGPIOWakeUpSource(const gpio_cfg_t *gpio); +int LP_IsGPIOWakeUpSource(const gpio_cfg_t *gpio); /** * @brief Wake on USB plug or unplug