X-Git-Url: https://codewiz.org/gitweb?a=blobdiff_plain;f=bertos%2Fcpu%2Farm%2Fdrv%2Fi2c_lpc2.h;fp=bertos%2Fcpu%2Farm%2Fdrv%2Fi2c_lpc2.h;h=810b4e2f440188693574cd9d91ed0b225b267939;hb=ed8674a261c0d1b693a26c26387438b45cc87b9d;hp=0000000000000000000000000000000000000000;hpb=24c336c67562f66af4039128d6b7cbc78c13a2a7;p=bertos.git 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 */