mirror of
https://github.com/betaflight/betaflight.git
synced 2025-07-20 14:55:21 +03:00
Increased UART buffer size on STM32F4, and
Ensured FAKE ESC will only apply if both USE_SERIAL_4WAY_BLHELI_BOOTLOADER and USE_FAKE_ESC defined.
This commit is contained in:
parent
9c19333154
commit
c1eecb7a5b
2 changed files with 4 additions and 3 deletions
|
@ -30,8 +30,8 @@
|
||||||
#include "serial_uart.h"
|
#include "serial_uart.h"
|
||||||
#include "serial_uart_impl.h"
|
#include "serial_uart_impl.h"
|
||||||
|
|
||||||
#define UART_RX_BUFFER_SIZE UART1_RX_BUFFER_SIZE
|
#define UART_RX_BUFFER_SIZE 512
|
||||||
#define UART_TX_BUFFER_SIZE UART1_TX_BUFFER_SIZE
|
#define UART_TX_BUFFER_SIZE 512
|
||||||
|
|
||||||
typedef enum UARTDevice {
|
typedef enum UARTDevice {
|
||||||
UARTDEV_1 = 0,
|
UARTDEV_1 = 0,
|
||||||
|
|
|
@ -330,7 +330,8 @@ uint8_t BL_WriteFlash(ioMem_t *pMem)
|
||||||
return BL_WriteA(CMD_PROG_FLASH, pMem, (40 / START_BIT_TIMEOUT_MS));
|
return BL_WriteA(CMD_PROG_FLASH, pMem, (40 / START_BIT_TIMEOUT_MS));
|
||||||
}
|
}
|
||||||
|
|
||||||
#else
|
#endif
|
||||||
|
#if defined(USE_SERIAL_4WAY_BLHELI_BOOTLOADER) && defined(USE_FAKE_ESC)
|
||||||
|
|
||||||
#define FAKE_PAGE_SIZE 512
|
#define FAKE_PAGE_SIZE 512
|
||||||
#define FAKE_FLASH_SIZE 16385
|
#define FAKE_FLASH_SIZE 16385
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue