mirror of https://github.com/ARMmbed/mbed-os.git
Fix the return type to allow returning error
parent
7f11ac0b95
commit
4edbde80b9
|
@ -179,7 +179,7 @@ int LP_ConfigGPIOWakeUpDetect(const gpio_cfg_t *gpio, unsigned int act_high, lp_
|
||||||
return result;
|
return result;
|
||||||
}
|
}
|
||||||
|
|
||||||
uint8_t LP_IsGPIOWakeUpSource(const gpio_cfg_t *gpio)
|
int LP_IsGPIOWakeUpSource(const gpio_cfg_t *gpio)
|
||||||
{
|
{
|
||||||
uint8_t gpioWokeUp = 0;
|
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
|
* nonzero = at least one of the gpio passed in triggered a wake up
|
||||||
* the bit set represents which pin is the wake up source
|
* 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
|
* @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;
|
return result;
|
||||||
}
|
}
|
||||||
|
|
||||||
uint8_t LP_IsGPIOWakeUpSource(const gpio_cfg_t *gpio)
|
int LP_IsGPIOWakeUpSource(const gpio_cfg_t *gpio)
|
||||||
{
|
{
|
||||||
uint8_t gpioWokeUp = 0;
|
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
|
* nonzero = at least one of the gpio passed in triggered a wake up
|
||||||
* the bit set represents which pin is the wake up source
|
* 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
|
* @brief Wake on USB plug or unplug
|
||||||
|
|
Loading…
Reference in New Issue