mirror of
https://github.com/betaflight/betaflight.git
synced 2025-07-21 15:25:36 +03:00
Fixing and unifying Serial RX initialisation. Destination arguments now
go last and each init method is passed the rxConfig.
This commit is contained in:
parent
f06c8bb99b
commit
6a9d38783c
8 changed files with 19 additions and 17 deletions
|
@ -12,6 +12,7 @@
|
|||
#include "failsafe.h"
|
||||
|
||||
#include "rx_common.h"
|
||||
#include "rx_sumd.h"
|
||||
|
||||
// driver for SUMD receiver using UART2
|
||||
|
||||
|
@ -25,7 +26,7 @@ static uint16_t sumdReadRawRC(rxConfig_t *rxConfig, uint8_t chan);
|
|||
|
||||
static uint32_t sumdChannelData[SUMD_MAX_CHANNEL];
|
||||
|
||||
void sumdInit(rcReadRawDataPtr *callback)
|
||||
void sumdInit(rxConfig_t *rxConfig, rcReadRawDataPtr *callback)
|
||||
{
|
||||
core.rcvrport = uartOpen(USART2, sumdDataReceive, 115200, MODE_RX);
|
||||
if (callback)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue