Cosmetics
This commit is contained in:
@@ -20,43 +20,26 @@
|
|||||||
|
|
||||||
#include "opentx.h"
|
#include "opentx.h"
|
||||||
|
|
||||||
#if defined(PCBSKY9X)
|
|
||||||
#include "AT91SAM3S4.h"
|
|
||||||
#else
|
|
||||||
#include "targets/taranis/board_taranis.h"
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#if defined(PCBTARANIS)
|
|
||||||
void bwdt_reset()
|
void bwdt_reset()
|
||||||
{
|
{
|
||||||
IWDG->KR = 0xAAAA; // reload
|
IWDG->KR = 0xAAAA; // reload
|
||||||
}
|
}
|
||||||
#endif
|
|
||||||
|
|
||||||
#if defined(PCBTARANIS)
|
|
||||||
// TODO needed?
|
// TODO needed?
|
||||||
__attribute__ ((section(".bootrodata"), used))
|
__attribute__ ((section(".bootrodata"), used))
|
||||||
void _bootStart(void);
|
void _bootStart(void);
|
||||||
#endif
|
|
||||||
|
|
||||||
#if defined(PCBTARANIS)
|
|
||||||
__attribute__ ((section(".isr_boot_vector"), used))
|
__attribute__ ((section(".isr_boot_vector"), used))
|
||||||
const uint32_t BootVectors[] = {
|
const uint32_t BootVectors[] = {
|
||||||
(uint32_t) &_estack,
|
(uint32_t) &_estack,
|
||||||
(uint32_t) (void (*)(void)) ((unsigned long) &_bootStart) };
|
(uint32_t) (void (*)(void)) ((unsigned long) &_bootStart) };
|
||||||
#endif
|
|
||||||
|
|
||||||
#if defined(PCBTARANIS)
|
|
||||||
__attribute__ ((section(".bootrodata.*"), used))
|
__attribute__ ((section(".bootrodata.*"), used))
|
||||||
#elif defined(PCBSKY9X)
|
|
||||||
__attribute__ ((section(".bootrodata"), used))
|
|
||||||
#endif
|
|
||||||
|
|
||||||
const uint8_t BootCode[] = {
|
const uint8_t BootCode[] = {
|
||||||
#include "bootloader.lbm"
|
#include "bootloader.lbm"
|
||||||
};
|
};
|
||||||
|
|
||||||
#if defined(PCBTARANIS)
|
|
||||||
__attribute__ ((section(".bootrodata"), used))
|
__attribute__ ((section(".bootrodata"), used))
|
||||||
void _bootStart()
|
void _bootStart()
|
||||||
{
|
{
|
||||||
@@ -157,5 +140,4 @@ void _bootStart()
|
|||||||
asm("bx r0");
|
asm("bx r0");
|
||||||
// Execute application
|
// Execute application
|
||||||
}
|
}
|
||||||
#endif
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user