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_b2_arch.c File Reference
#include "subsystems/imu.h"
#include <stm32/gpio.h>
#include <stm32/rcc.h>
#include <stm32/spi.h>
#include <stm32/exti.h>
#include <stm32/misc.h>
#include <stm32/dma.h>
+ Include dependency graph for imu_b2_arch.c:

Go to the source code of this file.

Macros

#define IMU_SSP_STA_IDLE   0
 
#define IMU_SSP_STA_BUSY_MAX1168   1
 
#define IMU_SSP_STA_BUSY_MS2100   2
 

Functions

void dma1_c4_irq_handler (void)
 
void spi2_irq_handler (void)
 
void imu_b2_arch_init (void)
 
void imu_periodic (void)
 

Variables

volatile uint8_t imu_ssp_status
 

Macro Definition Documentation

#define IMU_SSP_STA_BUSY_MAX1168   1

Definition at line 34 of file imu_b2_arch.c.

Referenced by dma1_c4_irq_handler(), and imu_periodic().

#define IMU_SSP_STA_BUSY_MS2100   2

Definition at line 35 of file imu_b2_arch.c.

Referenced by dma1_c4_irq_handler().

#define IMU_SSP_STA_IDLE   0

Definition at line 33 of file imu_b2_arch.c.

Referenced by dma1_c4_irq_handler(), imu_b2_arch_init(), imu_periodic(), and SSP_ISR().

Function Documentation

void imu_b2_arch_init ( void  )

Definition at line 42 of file imu_b2_arch.c.

References IMU_SSP_STA_IDLE, and imu_ssp_status.

Referenced by imu_impl_init().

+ Here is the caller graph for this function:

void imu_periodic ( void  )

Definition at line 76 of file imu_b2_arch.c.

References hmc5843_periodic(), IMU_SSP_STA_BUSY_MAX1168, imu_ssp_status, max1168_read(), and Max1168ConfigureSPI.

+ Here is the call graph for this function:

void spi2_irq_handler ( void  )

Definition at line 119 of file imu_b2_arch.c.

References Ms2100OnSpiIrq.

Variable Documentation

volatile uint8_t imu_ssp_status

Definition at line 37 of file imu_b2_arch.c.