1
0
Fork 0
mirror of https://github.com/betaflight/betaflight.git synced 2025-07-23 16:25:31 +03:00

Added UART alternative functions for F765

This commit is contained in:
Andrey Mironov 2018-09-07 22:53:19 +03:00
parent 7a331d03f4
commit 8073cb8665
2 changed files with 104 additions and 24 deletions

View file

@ -51,7 +51,7 @@
#endif
#elif defined(STM32F7)
#define UARTDEV_COUNT_MAX 8
#define UARTHARDWARE_MAX_PINS 3
#define UARTHARDWARE_MAX_PINS 4
#ifndef UART_RX_BUFFER_SIZE
#define UART_RX_BUFFER_SIZE 128
#endif
@ -134,7 +134,11 @@ typedef struct uartHardware_s {
#else
rccPeriphTag_t rcc;
#endif
#if defined(STM32F7)
uint8_t afs[UARTHARDWARE_MAX_PINS];
#else
uint8_t af;
#endif
#if defined(STM32F7)
uint8_t txIrq;
uint8_t rxIrq;