Fix the return type to allow returning error

pull/6818/head
Keyur Hariya 2018-04-23 15:45:05 -05:00 committed by adbridge
parent 7f11ac0b95
commit 4edbde80b9
4 changed files with 4 additions and 4 deletions

View File

@ -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;

View File

@ -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

View File

@ -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;

View File

@ -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