board_config: remove px4_board_pwr, use px4_shutdown_request instead

px4_board_pwr has become obsolete with the addition of board_shutdown
This commit is contained in:
Beat Küng
2017-04-20 10:01:51 +02:00
committed by Lorenz Meier
parent 25dfa9cda6
commit 0165633bf3
6 changed files with 16 additions and 56 deletions
-10
View File
@@ -342,16 +342,6 @@ void board_pwr_init(int stage);
bool board_pwr_button_down(void);
/****************************************************************************
* Name: board_pwr
*
* Description:
* Called to turn on or off the TAP
*
****************************************************************************/
__EXPORT bool px4_board_pwr(bool on_not_off);
#include "../common/board_common.h"
#endif /* __ASSEMBLY__ */
-21
View File
@@ -176,24 +176,3 @@ bool board_pwr_button_down(void)
{
return 0 == stm32_gpioread(KEY_AD_GPIO);
}
/****************************************************************************
* Name: board_pwr
*
* Description:
* Called to turn on or off the TAP
*
****************************************************************************/
__EXPORT bool px4_board_pwr(bool on_not_off)
{
if (on_not_off) {
stm32_configgpio(POWER_ON_GPIO);
} else {
stm32_configgpio(POWER_OFF_GPIO);
}
return true;
}