Cosmetics
This commit is contained in:
@@ -18,8 +18,9 @@
|
||||
* GNU General Public License for more details.
|
||||
*/
|
||||
|
||||
#include "../../opentx.h"
|
||||
#ifdef AR9X
|
||||
#include "opentx.h"
|
||||
|
||||
#if defined(AR9X)
|
||||
#include "i2c_driver.h"
|
||||
#endif
|
||||
|
||||
@@ -370,7 +371,7 @@ void opentxBootloader();
|
||||
|
||||
// Set up for volume control (TWI0)
|
||||
// Need PA3 and PA4 set to peripheral A
|
||||
#ifndef AR9X
|
||||
#if !defined(AR9X)
|
||||
void i2cInit()
|
||||
{
|
||||
register Pio *pioptr;
|
||||
@@ -489,6 +490,10 @@ void boardInit()
|
||||
|
||||
init_SDcard();
|
||||
}
|
||||
#else
|
||||
void boardInit()
|
||||
{
|
||||
}
|
||||
#endif
|
||||
|
||||
uint8_t temperature = 0; // Raw temp reading
|
||||
|
||||
@@ -31,6 +31,11 @@ extern uint16_t ResetReason;
|
||||
#define FIRMWARE_SIZE (256*1024)
|
||||
#define FIRMWARE_ADDRESS 0x00400000
|
||||
|
||||
// Board driver
|
||||
void boardInit(void);
|
||||
#define boardOff() pwrOff()
|
||||
|
||||
// Keys
|
||||
#if defined(REVA)
|
||||
#define KEYS_GPIO_REG_MENU PIOB->PIO_PDSR
|
||||
#define KEYS_GPIO_REG_EXIT PIOA->PIO_PDSR
|
||||
@@ -197,7 +202,11 @@ void disable_dsm2(uint32_t port);
|
||||
#endif
|
||||
|
||||
// WDT driver
|
||||
#if !defined(SIMU)
|
||||
#if defined(SIMU)
|
||||
#define wdt_disable()
|
||||
#define wdt_enable(x)
|
||||
#define wdt_reset()
|
||||
#else
|
||||
#define wdt_disable()
|
||||
#define wdt_enable(x) WDT->WDT_MR = 0x3FFF207F
|
||||
#define wdt_reset() WDT->WDT_CR = 0xA5000001
|
||||
|
||||
Reference in New Issue
Block a user