X-Git-Url: https://codewiz.org/gitweb?a=blobdiff_plain;f=bertos%2Fcpu%2Farm%2Fdrv%2Ftwi_arm.c;h=8395f392cf0b55ef9edaa6123b674425a671ce9c;hb=2db7ecba815ec3054934fe1ea99dac3241391204;hp=5a3cbe1ca2125cdf08f1957cdb554e51aabfba95;hpb=b94d14d668b87c1e6f6ddad5b6aafd6b45a613b6;p=bertos.git diff --git a/bertos/cpu/arm/drv/twi_arm.c b/bertos/cpu/arm/drv/twi_arm.c index 5a3cbe1c..8395f392 100644 --- a/bertos/cpu/arm/drv/twi_arm.c +++ b/bertos/cpu/arm/drv/twi_arm.c @@ -36,17 +36,21 @@ * * \author Daniele Basile * - * This module is automatically included so no need to include + * This module is automatically included so no need to include * in test list. * notest: arm * */ -#include +#ifndef WIZ_AUTOGEN + #warning This file is deprecated, you should use twi_at91.c -#if CPU_ARM_AT91 - #include "twi_at91.c" -/*#elif Add other ARM families here */ -#else - #error Unknown CPU -#endif + #include + + #if CPU_ARM_AT91 + #include "twi_at91.c" + /*#elif Add other ARM families here */ + #else + #error Unknown CPU + #endif +#endif /* WIZ_AUTOGEN */