mirror of
https://github.com/PX4/PX4-Autopilot.git
synced 2026-06-05 22:24:47 +08:00
nxphlite-v3:Manage Spektrum power & bind
This commit is contained in:
@@ -412,6 +412,9 @@ __BEGIN_DECLS
|
|||||||
// Do not have #define VDD_5V_WIFI_EN(on_true) px4_arch_gpiowrite(GPIO_VDD_5V_WIFI_EN, (on_true))
|
// Do not have #define VDD_5V_WIFI_EN(on_true) px4_arch_gpiowrite(GPIO_VDD_5V_WIFI_EN, (on_true))
|
||||||
#define VDD_3V3_SD_CARD_EN(on_true) px4_arch_gpiowrite(SD_CAED_P_EN, !(on_true))
|
#define VDD_3V3_SD_CARD_EN(on_true) px4_arch_gpiowrite(SD_CAED_P_EN, !(on_true))
|
||||||
|
|
||||||
|
/* Map to control term used in RC lib */
|
||||||
|
#define SPEKTRUM_POWER(on_true) VDD_3V3_SPEKTRUM_POWER_EN((on_true))
|
||||||
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* By Providing BOARD_ADC_USB_CONNECTED (using the px4_arch abstraction)
|
* By Providing BOARD_ADC_USB_CONNECTED (using the px4_arch abstraction)
|
||||||
|
|||||||
@@ -241,6 +241,10 @@ kinetis_boardinitialize(void)
|
|||||||
|
|
||||||
nxphlite_timer_initialize();
|
nxphlite_timer_initialize();
|
||||||
|
|
||||||
|
/* Power on Spektrum */
|
||||||
|
|
||||||
|
VDD_3V3_SPEKTRUM_POWER_EN(true);
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
//FIXME: Stubs -----v
|
//FIXME: Stubs -----v
|
||||||
@@ -513,6 +517,5 @@ __EXPORT int board_app_initialize(uintptr_t arg)
|
|||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
||||||
return OK;
|
return OK;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user