Paparazzi UAS  v5.15_devel-164-g81d4ceb
Paparazzi is a free software Unmanned Aircraft System.
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Modules Pages
i2c_arch.c File Reference

Interface from Paparazzi I2C to ChibiOS I2C driver. More...

#include "mcu_periph/i2c_arch.h"
#include "mcu_periph/i2c.h"
#include <BOARD_CONFIG>
#include <ch.h>
#include <hal.h>
#include "mcu_periph/ram_arch.h"
#include "string.h"
+ Include dependency graph for i2c_arch.c:

Go to the source code of this file.


#define I2C_THREAD_STACK_SIZE   512


void i2c_event (void)
 i2c_event() function More...
void i2c_setbitrate (struct i2c_periph *p, int bitrate)
 i2c_setbitrate() function More...
bool i2c_submit (struct i2c_periph *p, struct i2c_transaction *t)
 i2c_submit() function More...
bool i2c_idle (struct i2c_periph *p)
 i2c_idle() function More...

Detailed Description

Interface from Paparazzi I2C to ChibiOS I2C driver.

I2C configuration files are defined in the board file, so the maximal architecture independence is ensured.

Definition in file i2c_arch.c.

Macro Definition Documentation

#define I2C_THREAD_STACK_SIZE   512

Definition at line 46 of file i2c_arch.c.