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_arch.old.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_arch.old.c:

Go to the source code of this file.

Macros

#define I2C_BUSY   0x20
 
#define SPURIOUS_INTERRUPT(_status, _event)   {}
 
#define OUT_OF_SYNC_STATE_MACHINE(_status, _event)   {}
 

Functions

static void start_transaction (struct i2c_periph *p)
 
static void end_of_transaction (struct i2c_periph *p)
 
static void i2c_hard_reset (struct i2c_periph *p)
 
static void i2c_reset_init (struct i2c_periph *p)
 
static void i2c_delay (void)
 
static void i2c_apply_config (struct i2c_periph *p)
 
static void abort_and_reset (struct i2c_periph *p)
 
bool_t i2c_idle (struct i2c_periph *p)
 
bool_t i2c_submit (struct i2c_periph *p, struct i2c_transaction *t)
 

Macro Definition Documentation

#define I2C_BUSY   0x20

Definition at line 14 of file i2c_arch.old.c.

#define OUT_OF_SYNC_STATE_MACHINE (   _status,
  _event 
)    {}

Definition at line 21 of file i2c_arch.old.c.

#define SPURIOUS_INTERRUPT (   _status,
  _event 
)    {}

Definition at line 20 of file i2c_arch.old.c.

Function Documentation

static void abort_and_reset ( struct i2c_periph p)
inlinestatic
static void end_of_transaction ( struct i2c_periph p)
inlinestatic

Definition at line 56 of file i2c_arch.old.c.

References I2C_TRANSACTION_QUEUE_LEN, I2CIdle, start_transaction(), i2c_periph::status, i2c_periph::trans_extract_idx, and i2c_periph::trans_insert_idx.

Referenced by abort_and_reset().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

static void i2c_apply_config ( struct i2c_periph p)
inlinestatic

Definition at line 51 of file i2c_arch.old.c.

References i2c_periph::init_struct, and i2c_periph::reg_addr.

static void i2c_delay ( void  )
inlinestatic

Definition at line 46 of file i2c_arch.old.c.

static void i2c_hard_reset ( struct i2c_periph p)
inlinestatic

Referenced by abort_and_reset().

+ Here is the caller graph for this function:

bool_t i2c_idle ( struct i2c_periph p)

Definition at line 693 of file i2c_arch.old.c.

References i2c_periph::reg_addr.

static void i2c_reset_init ( struct i2c_periph p)
inlinestatic
bool_t i2c_submit ( struct i2c_periph p,
struct i2c_transaction t 
)
static void start_transaction ( struct i2c_periph p)
static

Definition at line 724 of file i2c_arch.old.c.

References I2CStartRequested, i2c_periph::idx_buf, i2c_periph::reg_addr, and i2c_periph::status.

Referenced by end_of_transaction(), and i2c_submit().

+ Here is the caller graph for this function: