fiy simu and firmware compilation issues for different radios
This commit is contained in:
committed by
Raphael Coeffic
parent
4ec3304969
commit
dec89b56c2
@@ -25,6 +25,7 @@
|
||||
|
||||
uint16_t getTmr2MHz();
|
||||
|
||||
#define watchdogSuspend(timeout)
|
||||
#else
|
||||
|
||||
#include "board.h"
|
||||
|
||||
@@ -22,6 +22,10 @@
|
||||
#include "opentx_types.h"
|
||||
#include "board.h"
|
||||
|
||||
#if !defined(BOOT)
|
||||
#include "myeeprom.h"
|
||||
#endif
|
||||
|
||||
void backlightInit()
|
||||
{
|
||||
// PIN init
|
||||
|
||||
@@ -63,7 +63,7 @@ void watchdogInit(unsigned int duration)
|
||||
IWDG->KR = 0xCCCC; // start
|
||||
}
|
||||
|
||||
#if HAS_SPORT_UPDATE_CONNECTOR()
|
||||
#if HAS_SPORT_UPDATE_CONNECTOR() && !defined(BOOT)
|
||||
void sportUpdateInit()
|
||||
{
|
||||
GPIO_InitTypeDef GPIO_InitStructure;
|
||||
@@ -257,7 +257,7 @@ void boardInit()
|
||||
usbChargerInit();
|
||||
#endif
|
||||
|
||||
#if HAS_SPORT_UPDATE_CONNECTOR()
|
||||
#if HAS_SPORT_UPDATE_CONNECTOR() && !defined(BOOT)
|
||||
sportUpdateInit();
|
||||
#endif
|
||||
|
||||
|
||||
@@ -47,6 +47,8 @@ bool simu_running = false;
|
||||
|
||||
uint32_t telemetryErrors = 0;
|
||||
|
||||
volatile rotenc_t rotencValue = 0;
|
||||
|
||||
// TODO: remove all STM32 defs
|
||||
GPIO_TypeDef gpioa, gpiob, gpioc, gpiod, gpioe, gpiof, gpiog, gpioh, gpioi, gpioj;
|
||||
USART_TypeDef Usart0, Usart1, Usart2, Usart3, Usart4;
|
||||
|
||||
@@ -22,6 +22,11 @@
|
||||
#include "board.h"
|
||||
#include "lcd.h"
|
||||
|
||||
#if !defined(BOOT)
|
||||
#include "myeeprom.h"
|
||||
#include "debug.h"
|
||||
#endif
|
||||
|
||||
#define CONTRAST_OFS 5
|
||||
#define RESET_WAIT_DELAY_MS 1300 // Wait time after LCD reset before first command
|
||||
|
||||
|
||||
@@ -19,7 +19,11 @@
|
||||
* GNU General Public License for more details.
|
||||
*/
|
||||
|
||||
#include <stdlib.h>
|
||||
|
||||
#include "opentx.h"
|
||||
#include "board.h"
|
||||
#include "lcd.h"
|
||||
|
||||
#define CS1_HIGH() TOPLCD_GPIO->BSRRL = TOPLCD_GPIO_PIN_CS1
|
||||
#define CS1_LOW() TOPLCD_GPIO->BSRRH = TOPLCD_GPIO_PIN_CS1
|
||||
|
||||
Reference in New Issue
Block a user