mirror of https://github.com/ARMmbed/mbed-os.git
Fix the return type to allow returning error
parent
11cf79ecb0
commit
85bc74cc1d
|
@ -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;
|
||||
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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;
|
||||
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue