Paparazzi UAS  v4.0.4_stable-3-gf39211a
Paparazzi is a free software Unmanned Aircraft System.
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
lisa_test_aspirin.c File Reference
#include <stm32/gpio.h>
#include <stm32/flash.h>
#include <stm32/misc.h>
#include <stm32/exti.h>
#include <stm32/spi.h>
#include "mcu.h"
#include "mcu_periph/sys_time.h"
#include "subsystems/datalink/downlink.h"
#include "led.h"
#include "peripherals/itg3200.h"
#include "peripherals/hmc5843.h"
+ Include dependency graph for lisa_test_aspirin.c:

Go to the source code of this file.

Macros

#define AccUnselect()   GPIOB->BSRR = GPIO_Pin_12
 
#define AccSelect()   GPIOB->BRR = GPIO_Pin_12
 
#define AccToggleSelect()   GPIOB->ODR ^= GPIO_Pin_12
 

Functions

static void main_init (void)
 
static void main_periodic_task (void)
 
static void main_event_task (void)
 
static void main_init_hw (void)
 
void exti2_irq_handler (void)
 
void exti3_irq_handler (void)
 
void exti4_irq_handler (void)
 
int main (void)
 

Variables

static volatile uint8_t gyro_ready_for_read
 
static uint8_t foo =0
 

Macro Definition Documentation

#define AccSelect ( )    GPIOB->BRR = GPIO_Pin_12

Definition at line 76 of file lisa_test_aspirin.c.

#define AccToggleSelect ( )    GPIOB->ODR ^= GPIO_Pin_12

Definition at line 77 of file lisa_test_aspirin.c.

Referenced by exti2_irq_handler().

#define AccUnselect ( )    GPIOB->BSRR = GPIO_Pin_12

Definition at line 75 of file lisa_test_aspirin.c.

Referenced by main_init_hw().

Function Documentation

void exti2_irq_handler ( void  )
void exti3_irq_handler ( void  )

Definition at line 287 of file lisa_test_aspirin.c.

References RESET.

void exti4_irq_handler ( void  )

Definition at line 298 of file lisa_test_aspirin.c.

References RESET.

int main ( void  )

Definition at line 51 of file lisa_test_aspirin.c.

References main_event_task(), main_init(), main_periodic_task(), and sys_time_check_and_ack_timer().

+ Here is the call graph for this function:

static void main_event_task ( void  )
inlinestatic

Definition at line 143 of file lisa_test_aspirin.c.

Referenced by main().

+ Here is the caller graph for this function:

static void main_init ( void  )
inlinestatic

Definition at line 63 of file lisa_test_aspirin.c.

References FALSE, gyro_ready_for_read, main_init_hw(), mcu_init(), PERIODIC_FREQUENCY, and sys_time_register_timer().

Referenced by main().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

static void main_init_hw ( void  )
inlinestatic

Definition at line 148 of file lisa_test_aspirin.c.

References AccUnselect.

Referenced by main_init().

+ Here is the caller graph for this function:

static void main_periodic_task ( void  )
inlinestatic

Variable Documentation

uint8_t foo =0
static

Definition at line 72 of file lisa_test_aspirin.c.

Referenced by exti2_irq_handler(), and main_periodic_task().

volatile uint8_t gyro_ready_for_read
static

Definition at line 45 of file lisa_test_aspirin.c.

Referenced by exti2_irq_handler(), and main_init().