feat: Flysky PA01 support (#6392)
Co-authored-by: Malte Langermann <malte@langermann.net> Co-authored-by: philmoz <phil.a.mitchell@gmail.com> Co-authored-by: 3djc <3djc@gh.com> Co-authored-by: raphaelcoeffic <1050031+raphaelcoeffic@users.noreply.github.com> Co-authored-by: xlong <984929678@qq.com> Co-authored-by: Peter Feerick <pfeerick@users.noreply.github.com>
This commit is contained in:
co-authored by
Malte Langermann
philmoz
3djc
raphaelcoeffic
xlong
Peter Feerick
parent
89e57df285
commit
e89a4414ac
@@ -393,15 +393,19 @@ static void _internal_module_set_pwr(uint8_t enable)
|
||||
}
|
||||
}
|
||||
|
||||
#if defined(INTMODULE_BOOTCMD_GPIO)
|
||||
#if defined(INTMODULE_BOOTCMD_GPIO) || defined(INTMODULE_BOOTCMD_BSP)
|
||||
static void _internal_module_set_bootcmd(uint8_t enable)
|
||||
{
|
||||
#if defined(INTMODULE_BOOTCMD_BSP)
|
||||
INTERNAL_MODULE_BOOTCMD(enable);
|
||||
#else
|
||||
// If default state is SET, invert the logic
|
||||
if (INTMODULE_BOOTCMD_DEFAULT) {
|
||||
enable = !enable;
|
||||
}
|
||||
|
||||
gpio_write(INTMODULE_BOOTCMD_GPIO, enable);
|
||||
#endif
|
||||
}
|
||||
#endif
|
||||
|
||||
@@ -437,7 +441,7 @@ static const etx_module_port_t _internal_ports[] = {
|
||||
static const etx_module_t _internal_module = {
|
||||
.ports = _internal_ports,
|
||||
.set_pwr = _internal_module_set_pwr,
|
||||
#if defined(INTMODULE_BOOTCMD_GPIO)
|
||||
#if defined(INTMODULE_BOOTCMD_GPIO) || defined(INTMODULE_BOOTCMD_BSP)
|
||||
.set_bootcmd = _internal_module_set_bootcmd,
|
||||
#else
|
||||
.set_bootcmd = nullptr,
|
||||
|
||||
@@ -24,6 +24,7 @@
|
||||
#include "stm32_gpio_driver.h"
|
||||
|
||||
#include "drivers/pca95xx.h"
|
||||
#include "drivers/aw9523b.h"
|
||||
|
||||
#include "definitions.h"
|
||||
#include "myeeprom.h"
|
||||
|
||||
Reference in New Issue
Block a user