mirror of
https://github.com/betaflight/betaflight.git
synced 2025-07-16 12:55:19 +03:00
Move internal serial interface into separate header file
Declaring function from other file is quite dangerous - there is no warning if interfaces get out of sync
This commit is contained in:
parent
7c263254b2
commit
7c62ec9755
5 changed files with 32 additions and 10 deletions
|
@ -35,6 +35,7 @@
|
|||
|
||||
#include "serial.h"
|
||||
#include "serial_uart.h"
|
||||
#include "serial_uart_impl.h"
|
||||
|
||||
// Using RX DMA disables the use of receive callbacks
|
||||
#define USE_USART1_RX_DMA
|
||||
|
@ -74,8 +75,6 @@ static uartPort_t uartPort1;
|
|||
static uartPort_t uartPort2;
|
||||
static uartPort_t uartPort3;
|
||||
|
||||
void uartStartTxDMA(uartPort_t *s);
|
||||
|
||||
uartPort_t *serialUSART1(uint32_t baudRate, portMode_t mode)
|
||||
{
|
||||
uartPort_t *s;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue