Paparazzi UAS  v5.0.5_stable-7-g4b8bbb7
Paparazzi is a free software Unmanned Aircraft System.
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Modules Pages
lisa_test_itg3200.c File Reference
#include <libopencm3/stm32/f1/gpio.h>
#include <libopencm3/stm32/exti.h>
#include <libopencm3/stm32/spi.h>
#include <BOARD_CONFIG>
#include "mcu.h"
#include "mcu_periph/uart.h"
#include "mcu_periph/i2c.h"
#include "mcu_periph/sys_time.h"
#include "subsystems/datalink/downlink.h"
#include "std.h"
#include "math/pprz_algebra_int.h"
#include "peripherals/itg3200_regs.h"
#include "my_debug_servo.h"
#include "led.h"
+ Include dependency graph for lisa_test_itg3200.c:

Go to the source code of this file.

Macros

#define INITIALIZED   6
 

Functions

static void main_init (void)
 
static void main_periodic_task (void)
 
static void main_event_task (void)
 
static void main_init_hw (void)
 
int main (void)
 
void exti15_10_irq_handler (void)
 

Variables

static struct i2c_transaction i2c_trans
 
static uint8_t gyro_state = 0
 
static volatile uint8_t gyro_ready_for_read = FALSE
 
static uint8_t reading_gyro = FALSE
 

Macro Definition Documentation

#define INITIALIZED   6

Definition at line 53 of file lisa_test_itg3200.c.

Referenced by exti15_10_irq_handler(), main_event_task(), and main_periodic_task().

Function Documentation

void exti15_10_irq_handler ( void  )

Definition at line 275 of file lisa_test_itg3200.c.

References gyro_ready_for_read, gyro_state, INITIALIZED, and TRUE.

int main ( void  )

Definition at line 58 of file lisa_test_itg3200.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
static void main_init ( void  )
inlinestatic

Definition at line 70 of file lisa_test_itg3200.c.

References 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 226 of file lisa_test_itg3200.c.

References DEBUG_SERVO1_INIT, and DEBUG_SERVO2_INIT.

Referenced by main_init().

+ Here is the caller graph for this function:

static void main_periodic_task ( void  )
inlinestatic

Variable Documentation

volatile uint8_t gyro_ready_for_read = FALSE
static

Definition at line 55 of file lisa_test_itg3200.c.

Referenced by exti15_10_irq_handler(), and main_event_task().

uint8_t gyro_state = 0
static

Definition at line 54 of file lisa_test_itg3200.c.

Referenced by exti15_10_irq_handler(), main_event_task(), and main_periodic_task().

struct i2c_transaction i2c_trans
static

Definition at line 52 of file lisa_test_itg3200.c.

Referenced by main_event_task(), and main_periodic_task().

uint8_t reading_gyro = FALSE
static

Definition at line 56 of file lisa_test_itg3200.c.

Referenced by main_event_task().