Power OFF on internal and external modules also put TX / RX / BOOTCMD to LOW
This commit is contained in:
@@ -171,6 +171,14 @@ uint32_t isBootloaderStart(const uint8_t * buffer);
|
||||
#define INTERNAL_MODULE_OFF() GPIO_ResetBits(INTMODULE_PWR_GPIO, INTMODULE_PWR_GPIO_PIN)
|
||||
#endif
|
||||
|
||||
#define EXTERNAL_MODULE_ON() EXTERNAL_MODULE_PWR_ON()
|
||||
|
||||
#if defined(EXTMODULE_USART)
|
||||
#define EXTERNAL_MODULE_OFF() extmoduleStop()
|
||||
#else
|
||||
#define EXTERNAL_MODULE_OFF() EXTERNAL_MODULE_PWR_OFF()
|
||||
#endif
|
||||
|
||||
#define IS_INTERNAL_MODULE_ON() (GPIO_ReadInputDataBit(INTMODULE_PWR_GPIO, INTMODULE_PWR_GPIO_PIN) == Bit_SET)
|
||||
|
||||
void init_ppm(uint8_t module);
|
||||
|
||||
Reference in New Issue
Block a user