From a2a3507dbe2ed90e363fbcc9bdbafa4970b13f78 Mon Sep 17 00:00:00 2001 From: asterix Date: Thu, 22 Jul 2010 17:10:36 +0000 Subject: [PATCH] Add cpu header selecter for i2c. git-svn-id: https://src.develer.com/svnoss/bertos/branches/i2c@4053 38d2e660-2303-0410-9eaa-f027e97ec537 --- bertos/cpu/arm/drv/i2c_arm.h | 48 ++++++++++++++++++++++++++++++++++++ 1 file changed, 48 insertions(+) create mode 100644 bertos/cpu/arm/drv/i2c_arm.h diff --git a/bertos/cpu/arm/drv/i2c_arm.h b/bertos/cpu/arm/drv/i2c_arm.h new file mode 100644 index 00000000..9bdc0547 --- /dev/null +++ b/bertos/cpu/arm/drv/i2c_arm.h @@ -0,0 +1,48 @@ +/** + * \file + * + * + * \brief Low-level I2C module for ARM (interface). + * + * \author Daniele Basile + * + */ + +#include + +#if CPU_ARM_AT91 + #include "i2c_at91.h" +#elif CPU_ARM_LPC2378 + #include "i2c_lpc2.h" +/*#elif Add other ARM families here */ +#else + #error Unknown CPU +#endif -- 2.25.1