[Taranis] Core in simu
This commit is contained in:
@@ -54,6 +54,13 @@ GPIO_TypeDef gpiob;
|
|||||||
GPIO_TypeDef gpioc;
|
GPIO_TypeDef gpioc;
|
||||||
GPIO_TypeDef gpiod;
|
GPIO_TypeDef gpiod;
|
||||||
GPIO_TypeDef gpioe;
|
GPIO_TypeDef gpioe;
|
||||||
|
TIM_TypeDef tim1;
|
||||||
|
TIM_TypeDef tim3;
|
||||||
|
TIM_TypeDef tim8;
|
||||||
|
RCC_TypeDef rcc;
|
||||||
|
DMA_Stream_TypeDef dma2_stream2;
|
||||||
|
DMA_Stream_TypeDef dma2_stream6;
|
||||||
|
DMA_TypeDef dma2;
|
||||||
#elif defined(PCBSKY9X)
|
#elif defined(PCBSKY9X)
|
||||||
Pio Pioa, Piob, Pioc;
|
Pio Pioa, Piob, Pioc;
|
||||||
Pwm pwm;
|
Pwm pwm;
|
||||||
|
|||||||
@@ -114,6 +114,27 @@ extern GPIO_TypeDef gpiod;
|
|||||||
extern GPIO_TypeDef gpioe;
|
extern GPIO_TypeDef gpioe;
|
||||||
#undef GPIOE
|
#undef GPIOE
|
||||||
#define GPIOE (&gpioe)
|
#define GPIOE (&gpioe)
|
||||||
|
extern TIM_TypeDef tim1;
|
||||||
|
extern TIM_TypeDef tim3;
|
||||||
|
extern TIM_TypeDef tim8;
|
||||||
|
#undef TIM1
|
||||||
|
#undef TIM3
|
||||||
|
#undef TIM8
|
||||||
|
#define TIM1 (&tim1)
|
||||||
|
#define TIM3 (&tim3)
|
||||||
|
#define TIM8 (&tim8)
|
||||||
|
extern RCC_TypeDef rcc;
|
||||||
|
#undef RCC
|
||||||
|
#define RCC (&rcc)
|
||||||
|
#undef DMA2_Stream2
|
||||||
|
#undef DMA2_Stream6
|
||||||
|
#define DMA2_Stream2 (&dma2_stream2)
|
||||||
|
#define DMA2_Stream6 (&dma2_stream6)
|
||||||
|
extern DMA_Stream_TypeDef dma2_stream2;
|
||||||
|
extern DMA_Stream_TypeDef dma2_stream6;
|
||||||
|
#undef DMA2
|
||||||
|
#define DMA2 (&dma2)
|
||||||
|
extern DMA_TypeDef dma2;
|
||||||
#elif defined(PCBSKY9X)
|
#elif defined(PCBSKY9X)
|
||||||
extern Pio Pioa, Piob, Pioc;
|
extern Pio Pioa, Piob, Pioc;
|
||||||
extern Twi Twio;
|
extern Twi Twio;
|
||||||
|
|||||||
Reference in New Issue
Block a user