From ed8674a261c0d1b693a26c26387438b45cc87b9d Mon Sep 17 00:00:00 2001 From: asterix Date: Mon, 26 Jul 2010 14:00:27 +0000 Subject: [PATCH] Add header for i2c for lpc2. git-svn-id: https://src.develer.com/svnoss/bertos/branches/i2c@4066 38d2e660-2303-0410-9eaa-f027e97ec537 --- bertos/cpu/arm/drv/i2c_lpc2.h | 58 +++++++++++++++++++++++++++++++++++ 1 file changed, 58 insertions(+) create mode 100644 bertos/cpu/arm/drv/i2c_lpc2.h diff --git a/bertos/cpu/arm/drv/i2c_lpc2.h b/bertos/cpu/arm/drv/i2c_lpc2.h new file mode 100644 index 00000000..810b4e2f --- /dev/null +++ b/bertos/cpu/arm/drv/i2c_lpc2.h @@ -0,0 +1,58 @@ +/** + * \file + * + * + * \brief Driver for the LPC23xx I2C (interface) + * + */ + +#ifndef I2C_LPC2_H +#define I2C_LPC2_H + +#include + +#include + +/** + * \name I2C devices enum + */ +enum +{ + I2C0, + I2C1, + I2C2, + + I2C_CNT /**< Number of serial ports */ +}; + +void i2c_hw_init(I2c *i2c, int dev, uint32_t clock); + +#endif /* I2C_LPC2_H */ -- 2.25.1