mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-05-02 05:04:08 +08:00
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:
parent
69fc3cbde0
commit
81f24b0a27
@ -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
|
||||
*/
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user