RTEMS 7.0-rc1
Loading...
Searching...
No Matches
Data Structures | Macros | Functions
i2c.c File Reference

EFM32GG11 I2C Driver. More...

#include <bsp.h>
#include <bsp/processor.h>
#include <bsp/efm32gg11_clock.h>
#include <bsp/efm32gg11_gpio.h>
#include <bsp/i2c.h>
#include <rtems/bspIo.h>
#include <rtems/sysinit.h>
#include <dev/i2c/i2c.h>

Data Structures

struct  i2c_context_s
 

Macros

#define PASTE2(a, b)   a ## b
 
#define PASTE3(a, b, c)   a ## b ## c
 
#define PASTE4(a, b, c, d)   a ## b ## c ## d
 
#define REGS(i)   PASTE2(I2C, i)
 
#define IRQN(i)   PASTE3(I2C, i, _IRQn)
 
#define SCL_PORT(i, l)   PASTE3(AF_I2C, i, _SCL_PORT)(l)
 
#define SCL_PIN(i, l)   PASTE3(AF_I2C, i, _SCL_PIN)(l)
 
#define SDA_PORT(i, l)   PASTE3(AF_I2C, i, _SDA_PORT)(l)
 
#define SDA_PIN(i, l)   PASTE3(AF_I2C, i, _SDA_PIN)(l)
 
#define HFPERCLKEN0_MASK(i)   PASTE2(CMU_HFPERCLKEN0_I2C, i)
 
#define NHIGH   4
 
#define NLOW   4
 

Functions

int efm32gg11_i2c_register ()
 

Detailed Description

EFM32GG11 I2C Driver.