chore(radio): small board cleanup (#6169)
This commit is contained in:
@@ -29,9 +29,16 @@
|
||||
#include "trainer_driver.h"
|
||||
|
||||
#include "module_ports.h"
|
||||
#include "intmodule_heartbeat.h"
|
||||
|
||||
#include "board.h"
|
||||
#include "dataconstants.h"
|
||||
|
||||
#include "pulses/pulses.h"
|
||||
#include "pulses/pxx1.h"
|
||||
|
||||
#include "trainer.h"
|
||||
|
||||
#if defined (HARDWARE_INTERNAL_MODULE)
|
||||
#if defined(INTMODULE_USART)
|
||||
|
||||
@@ -616,6 +623,17 @@ void boardInitModulePorts()
|
||||
gpio_set(EXTMODULE_PWR_FIX_GPIO);
|
||||
}
|
||||
#endif
|
||||
|
||||
#if defined(INTERNAL_MODULE_PXX1) && defined(PXX_FREQUENCY_HIGH)
|
||||
pxx1SetInternalBaudrate(PXX1_FAST_SERIAL_BAUDRATE);
|
||||
#endif
|
||||
|
||||
#if defined(INTMODULE_HEARTBEAT) && \
|
||||
(defined(INTERNAL_MODULE_PXX1) || defined(INTERNAL_MODULE_PXX2))
|
||||
pulsesSetModuleInitCb(_intmodule_heartbeat_init);
|
||||
pulsesSetModuleDeInitCb(_intmodule_heartbeat_deinit);
|
||||
trainerSetChangeCb(_intmodule_heartbeat_trainer_hook);
|
||||
#endif
|
||||
}
|
||||
|
||||
BEGIN_MODULES()
|
||||
|
||||
Reference in New Issue
Block a user