Skip to content

Commit 85bc74c

Browse files
Keyur HariyaKeyur Hariya
authored andcommitted
Fix the return type to allow returning error
1 parent 11cf79e commit 85bc74c

File tree

4 files changed

+4
-4
lines changed

4 files changed

+4
-4
lines changed

targets/TARGET_Maxim/TARGET_MAX32620C/mxc/lp.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -179,7 +179,7 @@ int LP_ConfigGPIOWakeUpDetect(const gpio_cfg_t *gpio, unsigned int act_high, lp_
179179
return result;
180180
}
181181

182-
uint8_t LP_IsGPIOWakeUpSource(const gpio_cfg_t *gpio)
182+
int LP_IsGPIOWakeUpSource(const gpio_cfg_t *gpio)
183183
{
184184
uint8_t gpioWokeUp = 0;
185185

targets/TARGET_Maxim/TARGET_MAX32620C/mxc/lp.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -138,7 +138,7 @@ int LP_ClearGPIOWakeUpDetect(const gpio_cfg_t *gpio);
138138
* nonzero = at least one of the gpio passed in triggered a wake up
139139
* the bit set represents which pin is the wake up source
140140
*/
141-
uint8_t LP_IsGPIOWakeUpSource(const gpio_cfg_t *gpio);
141+
int LP_IsGPIOWakeUpSource(const gpio_cfg_t *gpio);
142142

143143
/**
144144
* @brief Wake on USB plug or unplug

targets/TARGET_Maxim/TARGET_MAX32625/mxc/lp.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -178,7 +178,7 @@ int LP_ConfigGPIOWakeUpDetect(const gpio_cfg_t *gpio, unsigned int act_high, lp_
178178
return result;
179179
}
180180

181-
uint8_t LP_IsGPIOWakeUpSource(const gpio_cfg_t *gpio)
181+
int LP_IsGPIOWakeUpSource(const gpio_cfg_t *gpio)
182182
{
183183
uint8_t gpioWokeUp = 0;
184184

targets/TARGET_Maxim/TARGET_MAX32625/mxc/lp.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -138,7 +138,7 @@ int LP_ClearGPIOWakeUpDetect(const gpio_cfg_t *gpio);
138138
* nonzero = at least one of the gpio passed in triggered a wake up
139139
* the bit set represents which pin is the wake up source
140140
*/
141-
uint8_t LP_IsGPIOWakeUpSource(const gpio_cfg_t *gpio);
141+
int LP_IsGPIOWakeUpSource(const gpio_cfg_t *gpio);
142142

143143
/**
144144
* @brief Wake on USB plug or unplug

0 commit comments

Comments
 (0)