MindPX: Enable FrkSky telemetry on usart8/ttys6.

This commit is contained in:
Henry Zhang
2016-10-29 10:56:32 +02:00
committed by Lorenz Meier
parent 2b23835d56
commit 016aa47dfc
3 changed files with 9 additions and 1 deletions
@@ -289,6 +289,9 @@
#define GPIO_SBUS_INV (GPIO_OUTPUT|GPIO_PUSHPULL|GPIO_SPEED_2MHz|GPIO_OUTPUT_SET|GPIO_PORTA|GPIO_PIN10)
#define INVERT_RC_INPUT(_s) px4_arch_gpiowrite(GPIO_SBUS_INV, _s);
#define GPIO_FRSKY_INV (GPIO_OUTPUT|GPIO_PUSHPULL|GPIO_SPEED_2MHz|GPIO_OUTPUT_SET|GPIO_PORTB|GPIO_PIN12)
#define INVERT_FRSKY(_s) px4_arch_gpiowrite(GPIO_FRSKY_INV, _s);
/* Power switch controls */
#define GPIO_SPEKTRUM_PWR_EN
#define POWER_SPEKTRUM(_s) do { } while (0)
@@ -183,6 +183,7 @@ __EXPORT int nsh_archinitialize(void)
px4_arch_configgpio(GPIO_SBUS_INV);
px4_arch_configgpio(GPIO_RC_OUT); /* Serial RC output pin */
px4_arch_gpiowrite(GPIO_RC_OUT, 1); /* set it high to pull RC input up */
px4_arch_configgpio(GPIO_FRSKY_INV);
/* configure the high-resolution time/callout interface */
hrt_init();