From: asterix Date: Mon, 26 May 2008 13:35:03 +0000 (+0000) Subject: Add twi module for arm family. X-Git-Tag: 2.0.0~562 X-Git-Url: https://codewiz.org/gitweb?a=commitdiff_plain;h=dadc5ec2c820ae7305d585427be6a296e3f98a8b;p=bertos.git Add twi module for arm family. git-svn-id: https://src.develer.com/svnoss/bertos/trunk@1372 38d2e660-2303-0410-9eaa-f027e97ec537 --- diff --git a/bertos/cpu/arm/drv/twi_arm.c b/bertos/cpu/arm/drv/twi_arm.c new file mode 100644 index 00000000..4b67aea8 --- /dev/null +++ b/bertos/cpu/arm/drv/twi_arm.c @@ -0,0 +1,48 @@ +/** + * \file + * + * + * \brief Low-level TWI module for ARM (inplementation). + * + * \version $Id$ + * + * \author Daniele Basile + * + */ + +#include + +#if CPU_ARM_AT91 + #include "twi_at91.c" +/*#elif Add other ARM families here */ +#else + #error Unknown CPU +#endif diff --git a/bertos/cpu/arm/drv/twi_arm.h b/bertos/cpu/arm/drv/twi_arm.h new file mode 100644 index 00000000..4242956c --- /dev/null +++ b/bertos/cpu/arm/drv/twi_arm.h @@ -0,0 +1,48 @@ +/** + * \file + * + * + * \brief Low-level TWI module for ARM (interface). + * + * \version $Id$ + * + * \author Daniele Basile + * + */ + +#include + +#if CPU_ARM_AT91 + #include "twi_at91.h" +/*#elif Add other ARM families here */ +#else + #error Unknown CPU +#endif