Skip to content

Commit

Permalink
platforms/nuttx/src/px4/nxp/imx9/include/px4_arch/micro_hal.h: Enable…
Browse files Browse the repository at this point in the history
… GPIO control

Signed-off-by: Jukka Laitinen <[email protected]>
  • Loading branch information
jlaitine committed Apr 9, 2024
1 parent d32c036 commit 741163f
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions platforms/nuttx/src/px4/nxp/imx9/include/px4_arch/micro_hal.h
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@ __BEGIN_DECLS
#define GPIO_OUTPUT_CLEAR GPIO_OUTPUT_ZERO

#include <chip.h>
#include "imx9_gpio.h"

/*
*/
Expand Down Expand Up @@ -73,10 +74,10 @@ __BEGIN_DECLS
#define px4_i2cbus_initialize(bus_num_1based) NULL //imx9_i2cbus_initialize(PX4_BUS_NUMBER_FROM_PX4(bus_num_1based))
#define px4_i2cbus_uninitialize(pdev) (-1)//imx9_i2cbus_uninitialize(pdev)

#define px4_arch_configgpio(pinset) //imx9_config_gpio(pinset)
#define px4_arch_configgpio(pinset) imx9_config_gpio(pinset)
#define px4_arch_unconfiggpio(pinset)
#define px4_arch_gpioread(pinset) //imx9_gpio_read(pinset)
#define px4_arch_gpiowrite(pinset, value) //imx9_gpio_write(pinset, value)
#define px4_arch_gpioread(pinset) imx9_gpio_read(pinset)
#define px4_arch_gpiowrite(pinset, value) imx9_gpio_write(pinset, value)

int imx9_gpiosetevent(uint32_t pinset, bool risingedge, bool fallingedge, bool event, xcpt_t func, void *arg);

Expand Down

0 comments on commit 741163f

Please sign in to comment.