Move private #defines from i2c-pp.h to i2c-pp.c

git-svn-id: svn://svn.rockbox.org/rockbox/trunk@21014 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
Bertrik Sikken 2009-05-21 14:31:47 +00:00
parent ab222c1705
commit c0859f04be
2 changed files with 11 additions and 11 deletions

View file

@ -34,17 +34,6 @@
#ifndef _I2C_PP_H
#define _I2C_PP_H
#define I2C_CTRL (*(volatile unsigned char*)(I2C_BASE+0x00))
#define I2C_ADDR (*(volatile unsigned char*)(I2C_BASE+0x04))
#define I2C_DATA(X) (*(volatile unsigned char*)(I2C_BASE+0xc+(4*X)))
#define I2C_STATUS (*(volatile unsigned char*)(I2C_BASE+0x1c))
/* I2C_CTRL bit definitions */
#define I2C_SEND 0x80
/* I2C_STATUS bit definitions */
#define I2C_BUSY (1<<6)
/* TODO: Fully implement i2c driver */
/* To be used by drivers that need to do multiple i2c operations

View file

@ -36,6 +36,17 @@
#include "ascodec.h"
#include "as3514.h"
#define I2C_CTRL (*(volatile unsigned char*)(I2C_BASE+0x00))
#define I2C_ADDR (*(volatile unsigned char*)(I2C_BASE+0x04))
#define I2C_DATA(X) (*(volatile unsigned char*)(I2C_BASE+0xc+(4*X)))
#define I2C_STATUS (*(volatile unsigned char*)(I2C_BASE+0x1c))
/* I2C_CTRL bit definitions */
#define I2C_SEND 0x80
/* I2C_STATUS bit definitions */
#define I2C_BUSY (1<<6)
/* Local functions definitions */
static struct mutex i2c_mtx SHAREDBSS_ATTR;