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>
|
|
#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 |
| |
|
|
int | efm32gg11_i2c_register () |
| |