mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-11-02 07:01:36 +08:00
FMU gpio operations now conditional on BOARD_FMU_GPIO_TAB in board_config
return -EINVAL on any GPIO ioctl operation when there are
no GPIO pins defined in the board config. I.E.
BOARD_FMU_GPIO_TAB is not defined.
BOARD_FMU_GPIO_TAB is now optional and if it is defined
then the logical BOARD_HAS_FMU_GPIO is defined and
will enable the px4fmu driver to perform the physical GPIO
operations.
This commit is contained in:
committed by
Lorenz Meier
parent
216ec6513a
commit
33486d5047
@@ -132,6 +132,23 @@
|
||||
# define BOARD_EEPROM_WP_CTRL(on_true)
|
||||
#endif
|
||||
|
||||
|
||||
/* Conditional use of FMU GPIO
|
||||
* If the board use the PX4FMU driver and the board provides
|
||||
* BOARD_FMU_GPIO_TAB then we publish the logical BOARD_HAS_FMU_GPIO
|
||||
*/
|
||||
#if defined(BOARD_FMU_GPIO_TAB)
|
||||
# define BOARD_HAS_FMU_GPIO
|
||||
#endif
|
||||
|
||||
/* Conditional use of PX4 PIO is Used to determine if the board
|
||||
* has a PX4PIO processor.
|
||||
* We then publish the logical BOARD_USES_PX4PIO
|
||||
*/
|
||||
#if defined(PX4IO_SERIAL_DEVICE)
|
||||
# define BOARD_USES_PX4PIO 1
|
||||
#endif
|
||||
|
||||
/************************************************************************************
|
||||
* Private Functions
|
||||
************************************************************************************/
|
||||
|
||||
Reference in New Issue
Block a user