px4_fmuv5: Remove BOARD_INDICATE_EXTERNAL_LOCKOUT_STATE in protected/kernel build

Gpios are not directly accessible from userspace, so it should not be
controlled from within Commander directly

There is a need for a proper userspace interface via /dev/leds or such

Signed-off-by: Jukka Laitinen <jukkax@ssrc.tii.ae>
This commit is contained in:
Jukka Laitinen 2020-10-06 15:37:45 +03:00
parent 69fc3cbde0
commit 81f24b0a27

View File

@ -235,7 +235,13 @@
#define GPIO_nARMED_INIT /* PI0 */ (GPIO_INPUT|GPIO_PULLUP|GPIO_PORTI|GPIO_PIN0)
#define GPIO_nARMED /* PI0 */ (GPIO_OUTPUT|GPIO_PUSHPULL|GPIO_SPEED_2MHz|GPIO_OUTPUT_CLEAR|GPIO_PORTI|GPIO_PIN0)
#ifdef CONFIG_BUILD_FLAT
#define BOARD_INDICATE_EXTERNAL_LOCKOUT_STATE(enabled) px4_arch_configgpio((enabled) ? GPIO_nARMED : GPIO_nARMED_INIT)
#else
/* TODO: indicate armed state in protected & kernel build;
* this will need some kernel side driver and user-space interface
*/
#endif
/* PWM
*/