X-Git-Url: https://codewiz.org/gitweb?a=blobdiff_plain;f=bertos%2Fcpu%2Farm%2Fdrv%2Fpwm_arm.c;h=975d8db7baa60d2f925c21636ce43d9e5d8f28bb;hb=32d1445272120a254d77ce8d1af1f527da7a2c17;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..975d8db7 100644 --- a/bertos/cpu/arm/drv/pwm_arm.c +++ b/bertos/cpu/arm/drv/pwm_arm.c @@ -36,17 +36,22 @@ * * \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