Paparazzi UAS  v4.2.2_stable-4-gcc32f65
Paparazzi is a free software Unmanned Aircraft System.
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
imu_aspirin2_arch.c
Go to the documentation of this file.
1 #include "subsystems/imu.h"
2 
3 #include <stm32/gpio.h>
4 #include <stm32/misc.h>
5 #include <stm32/rcc.h>
6 
7 
9 
10  GPIO_InitTypeDef GPIO_InitStructure;
11 
12  /* Set baro CS (PC.13) as input with pullup to prevent floating input
13  * Aspirin 2.1 has this pin connected to ground
14  * Aspirin 2.2 has the ms5611 baro CS on this line
15  */
16  RCC_APB2PeriphClockCmd(RCC_APB2Periph_GPIOC, ENABLE);
17  GPIO_InitStructure.GPIO_Pin = GPIO_Pin_13;
18  GPIO_InitStructure.GPIO_Mode = GPIO_Mode_IPU;
19  GPIO_InitStructure.GPIO_Speed = GPIO_Speed_50MHz;
20  GPIO_Init(GPIOC, &GPIO_InitStructure);
21 
22 }
Inertial Measurement Unit interface.
void imu_aspirin2_arch_init(void)