Go to the documentation of this file.
20 #define USE_QUAD_MIXER_ONLY 0
21 #define TARGET_BOARD_IDENTIFIER "OLI1" // Olimexino
26 #ifdef OLIMEXINO_UNCUT_LED1_E_JUMPER
27 #define LED0_GPIO GPIOA
28 #define LED0_PIN Pin_5 // D13, PA5/SPI1_SCK/ADC5 - "LED1" on silkscreen, Green
29 #define LED0_PERIPHERAL RCC_APB2Periph_GPIOA
33 #ifdef OLIMEXINO_UNCUT_LED2_E_JUMPER
35 #define LED1_GPIO GPIOA
36 #define LED1_PIN Pin_1 // D3, PA1/UART2_RTS/ADC1/TIM2_CH3 - "LED2" on silkscreen, Yellow
37 #define LED1_PERIPHERAL RCC_APB2Periph_GPIOA
47 #define USE_GYRO_MPU6050
57 #define USE_ACC_MPU6050
63 #define USE_BARO_BMP085
66 #define USE_MAG_HMC5883
69 #define SONAR_TRIGGER_PIN Pin_0 // RX7 (PB0) - only 3.3v ( add a 1K Ohms resistor )
70 #define SONAR_TRIGGER_GPIO GPIOB
71 #define SONAR_ECHO_PIN Pin_1 // RX8 (PB1) - only 3.3v ( add a 1K Ohms resistor )
72 #define SONAR_ECHO_GPIO GPIOB
73 #define SONAR_EXTI_LINE EXTI_Line1
74 #define SONAR_EXTI_PIN_SOURCE GPIO_PinSource1
75 #define SONAR_EXTI_IRQN EXTI1_IRQn
79 #define USE_SOFTSERIAL1
80 #define USE_SOFTSERIAL2
81 #define SERIAL_PORT_COUNT 4
83 #define SOFTSERIAL_1_TIMER TIM3
84 #define SOFTSERIAL_1_TIMER_RX_HARDWARE 4 // PWM 5
85 #define SOFTSERIAL_1_TIMER_TX_HARDWARE 5 // PWM 6
86 #define SOFTSERIAL_2_TIMER TIM3
87 #define SOFTSERIAL_2_TIMER_RX_HARDWARE 6 // PWM 7
88 #define SOFTSERIAL_2_TIMER_TX_HARDWARE 7 // PWM 8
91 #define I2C_DEVICE (I2CDEV_2)
99 #define CURRENT_METER_ADC_GPIO GPIOB
100 #define CURRENT_METER_ADC_GPIO_PIN GPIO_Pin_1
101 #define CURRENT_METER_ADC_CHANNEL ADC_Channel_9
103 #define VBAT_ADC_GPIO GPIOA
104 #define VBAT_ADC_GPIO_PIN GPIO_Pin_4
105 #define VBAT_ADC_CHANNEL ADC_Channel_4
107 #define RSSI_ADC_GPIO GPIOA
108 #define RSSI_ADC_GPIO_PIN GPIO_Pin_1
109 #define RSSI_ADC_CHANNEL ADC_Channel_1
111 #define EXTERNAL1_ADC_GPIO GPIOA
112 #define EXTERNAL1_ADC_GPIO_PIN GPIO_Pin_5
113 #define EXTERNAL1_ADC_CHANNEL ADC_Channel_5
118 #define LED_STRIP_TIMER TIM3
119 #define WS2811_DMA_TC_FLAG DMA1_FLAG_TC6
120 #define WS2811_DMA_HANDLER_IDENTIFER DMA1_CH6_HANDLER