Revision cf1f756b source/alld_tps62113.c
source/alld_tps62113.c | ||
---|---|---|
33 | 33 |
apalDbgAssert(power != NULL); |
34 | 34 |
|
35 | 35 |
apalControlGpioState_t gpio_state; |
36 |
apalExitStatus_t status = apalControlGpioGet(&tps62113->gpio_power, &gpio_state);
|
|
36 |
apalExitStatus_t status = apalControlGpioGet(tps62113->gpio_power, &gpio_state); |
|
37 | 37 |
*power = (gpio_state == APAL_GPIO_ON) ? TPS62113_LLD_POWER_ENABLED : TPS62113_LLD_POWER_DISABLED; |
38 | 38 |
return status; |
39 | 39 |
} |
... | ... | |
49 | 49 |
{ |
50 | 50 |
apalDbgAssert(tps62113 != NULL); |
51 | 51 |
|
52 |
return apalControlGpioSet(&tps62113->gpio_power, (power == TPS62113_LLD_POWER_ENABLED) ? APAL_GPIO_ON : APAL_GPIO_OFF);
|
|
52 |
return apalControlGpioSet(tps62113->gpio_power, (power == TPS62113_LLD_POWER_ENABLED) ? APAL_GPIO_ON : APAL_GPIO_OFF); |
|
53 | 53 |
} |
54 | 54 |
|
55 | 55 |
#endif /* defined(AMIROLLD_CFG_USE_TPS62113) */ |
Also available in: Unified diff