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
i2c_attempt1.c File Reference
#include "mcu_periph/i2c.h"
#include <stm32/rcc.h>
#include <stm32/gpio.h>
#include <stm32/flash.h>
#include <stm32/misc.h>
+ Include dependency graph for i2c_attempt1.c:

Go to the source code of this file.

Macros

#define SPURIOUS_INTERRUPT(_periph, _status, _event)   { }
 
#define OUT_OF_SYNC_STATE_MACHINE(_periph, _status, _event)   { }
 

Functions

static void LED1_ON (void)
 
static void LED1_OFF (void)
 
static void LED2_ON ()
 
static void LED2_OFF (void)
 
static void LED_INIT (void)
 
static void LED_ERROR (uint8_t nr)
 
static void LED_STROBE2 (void)
 
bool_t i2c_submit (struct i2c_periph *periph, struct i2c_transaction *t)
 
bool_t i2c_idle (struct i2c_periph *periph)
 

Macro Definition Documentation

#define OUT_OF_SYNC_STATE_MACHINE (   _periph,
  _status,
  _event 
)    { }

Definition at line 83 of file i2c_attempt1.c.

#define SPURIOUS_INTERRUPT (   _periph,
  _status,
  _event 
)    { }

Definition at line 82 of file i2c_attempt1.c.

Function Documentation

bool_t i2c_idle ( struct i2c_periph periph)

Definition at line 653 of file i2c_attempt1.c.

static void LED1_OFF ( void  )
inlinestatic

Definition at line 17 of file i2c_attempt1.c.

Referenced by i2c_event(), i2c_irq(), i2c_setbitrate(), LED_ERROR(), LED_INIT(), LED_STROBE2(), PPRZ_I2C_SEND_START(), PPRZ_I2C_SEND_STOP(), stmi2c_read1(), stmi2c_read2(), and stmi2c_readmany().

+ Here is the caller graph for this function:

static void LED1_ON ( void  )
inlinestatic

Definition at line 12 of file i2c_attempt1.c.

Referenced by i2c_event(), i2c_irq(), i2c_setbitrate(), LED_ERROR(), LED_STROBE2(), PPRZ_I2C_SEND_START(), PPRZ_I2C_SEND_STOP(), stmi2c_read1(), stmi2c_read2(), and stmi2c_readmany().

+ Here is the caller graph for this function:

static void LED2_OFF ( void  )
inlinestatic
static void LED2_ON ( void  )
inlinestatic
static void LED_ERROR ( uint8_t  nr)
inlinestatic

Definition at line 46 of file i2c_attempt1.c.

References LED1_OFF(), LED1_ON(), LED2_OFF(), and LED2_ON().

Referenced by i2c_error().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

static void LED_INIT ( void  )
inlinestatic

Definition at line 32 of file i2c_attempt1.c.

References LED1_OFF(), and LED2_OFF().

+ Here is the call graph for this function:

static void LED_STROBE2 ( void  )
inlinestatic

Definition at line 60 of file i2c_attempt1.c.

References LED1_OFF(), LED1_ON(), LED2_OFF(), and LED2_ON().

+ Here is the call graph for this function: