X-Git-Url: https://codewiz.org/gitweb?a=blobdiff_plain;f=bertos%2Fcpu%2Farm%2Fdrv%2Fpwm_arm.c;h=18b699ab46a4f658d898c9eb4f2d1807a7266a58;hb=2b74d29e47161c81ee4f055072a63a54310249c8;hp=d643739ce9b4df752a254fea1b390ecfb1bf5d6d;hpb=b94d14d668b87c1e6f6ddad5b6aafd6b45a613b6;p=bertos.git diff --git a/bertos/cpu/arm/drv/pwm_arm.c b/bertos/cpu/arm/drv/pwm_arm.c index d643739c..18b699ab 100644 --- a/bertos/cpu/arm/drv/pwm_arm.c +++ b/bertos/cpu/arm/drv/pwm_arm.c @@ -32,21 +32,25 @@ * * \brief Low-level PWM module for ARM (inplementation). * - * \version $Id$ * * \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 pwm_at91.c + + #include + + #if CPU_ARM_AT91 + #include "pwm_at91.c" + /*#elif Add other ARM families here */ + #else + #error Unknown CPU + #endif +#endif /* WIZ_AUTOGEN */ -#if CPU_ARM_AT91 - #include "pwm_at91.c" -/*#elif Add other ARM families here */ -#else - #error Unknown CPU -#endif