chore(radio): small board cleanup (#6169)

This commit is contained in:
Raphael Coeffic
2025-05-08 18:17:39 +10:00
committed by GitHub
parent 0cee1936c8
commit ba5a60bfc1
7 changed files with 59 additions and 86 deletions
@@ -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()