1
0
Fork 0
mirror of https://github.com/betaflight/betaflight.git synced 2025-07-22 07:45:29 +03:00

Revert "Remove OpenPilot bootloader support."

This reverts commit 0150abf1bc.

Conflicts:
	src/main/target/CC3D/target.h
This commit is contained in:
borisbstyle 2015-10-15 09:33:24 +02:00
parent e25087bbbc
commit 05dec6c21e
7 changed files with 51 additions and 11 deletions

View file

@ -132,20 +132,13 @@
#define S1W_RX_GPIO GPIOB
#define S1W_RX_PIN GPIO_Pin_11
#if defined(OPBL)
// disabled some features for OPBL build due to code size.
#undef AUTOTUNE
#undef BARO
#undef DISPLAY
#undef SONAR
#define SKIP_CLI_COMMAND_HELP
#endif
#if defined(OPBL) && defined(USE_SERIAL_1WIRE)
#undef DISPLAY
#undef SONAR
#undef BARO
#define SKIP_CLI_COMMAND_HELP
#endif
#define SPEKTRUM_BIND
// USART3, PB11 (Flexport)
#define BIND_PORT GPIOB

View file

@ -0,0 +1,21 @@
/*
*****************************************************************************
**
** File : stm32_flash.ld
**
** Abstract : Linker script for STM32F103CB Device with
** 128KByte FLASH, 20KByte RAM
**
*****************************************************************************
*/
/* Specify the memory areas. */
MEMORY
{
FLASH (rx) : ORIGIN = 0x08003000, LENGTH = 126K - 0x03000 /* last 2kb used for config storage first 12k for OP Bootloader*/
RAM (xrw) : ORIGIN = 0x20000000, LENGTH = 20K
MEMORY_B1 (rx) : ORIGIN = 0x60000000, LENGTH = 0K
}
INCLUDE "stm32_flash.ld"