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

Go to the source code of this file.


#define Adxl345Unselect()   GPIOB->BSRR = GPIO_Pin_12
#define Adxl345Select()   GPIOB->BRR = GPIO_Pin_12


void exti15_10_irq_handler (void)
void exti9_5_irq_handler (void)
void exti2_irq_handler (void)
void dma1_c4_irq_handler (void)
void imu_aspirin_arch_int_enable (void)
void imu_aspirin_arch_int_disable (void)
void imu_aspirin_arch_init (void)
void adxl345_write_to_reg (uint8_t addr, uint8_t val)
void adxl345_clear_rx_buf (void)
void adxl345_start_reading_data (void)

Macro Definition Documentation

#define Adxl345Select ( )    GPIOB->BRR = GPIO_Pin_12

Definition at line 20 of file imu_aspirin_arch.c.

Referenced by adxl345_start_reading_data(), and adxl345_write_to_reg().

#define Adxl345Unselect ( )    GPIOB->BSRR = GPIO_Pin_12

Function Documentation

void adxl345_clear_rx_buf ( void  )

Definition at line 184 of file imu_aspirin_arch.c.

References __attribute__().

+ Here is the call graph for this function:

void adxl345_start_reading_data ( void  )

Definition at line 188 of file imu_aspirin_arch.c.

References ImuAspirin::accel_rx_buf, ImuAspirin::accel_tx_buf, ADXL345_REG_DATA_X0, Adxl345Select, and imu_aspirin.

Referenced by configure_accel(), and exti2_irq_handler().

+ Here is the caller graph for this function:

void adxl345_write_to_reg ( uint8_t  addr,
uint8_t  val 

Definition at line 172 of file imu_aspirin_arch.c.

References Adxl345Select, Adxl345Unselect, and RESET.

void dma1_c4_irq_handler ( void  )

Definition at line 279 of file imu_aspirin_arch.c.

References ImuAspirin::accel_available, Adxl345Unselect, imu_aspirin, and TRUE.

void exti15_10_irq_handler ( void  )

Definition at line 246 of file imu_aspirin_arch.c.

References AspirinStatusReadingGyro, imu_aspirin, RESET, ImuAspirin::status, and TRUE.

void exti2_irq_handler ( void  )

Definition at line 264 of file imu_aspirin_arch.c.

References adxl345_start_reading_data(), and RESET.

+ Here is the call graph for this function:

void exti9_5_irq_handler ( void  )

Definition at line 66 of file hmc5843_arch.c.

void imu_aspirin_arch_init ( void  )

Definition at line 80 of file imu_aspirin_arch.c.

References Adxl345Unselect.

void imu_aspirin_arch_int_disable ( void  )

Definition at line 52 of file imu_aspirin_arch.c.

void imu_aspirin_arch_int_enable ( void  )

Definition at line 24 of file imu_aspirin_arch.c.