From 85bc74cc1d647a5972f09f3b505c7901cacd8820 Mon Sep 17 00:00:00 2001 From: Keyur Hariya Date: Mon, 23 Apr 2018 15:45:05 -0500 Subject: [PATCH] Fix the return type to allow returning error --- targets/TARGET_Maxim/TARGET_MAX32620C/mxc/lp.c | 2 +- targets/TARGET_Maxim/TARGET_MAX32620C/mxc/lp.h | 2 +- targets/TARGET_Maxim/TARGET_MAX32625/mxc/lp.c | 2 +- targets/TARGET_Maxim/TARGET_MAX32625/mxc/lp.h | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) 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