From 6863656e1f7c8032b1405e38a4fbdb7827fec408 Mon Sep 17 00:00:00 2001 From: asterix Date: Thu, 22 May 2008 12:38:08 +0000 Subject: [PATCH] Add generic module for PWM target family. git-svn-id: https://src.develer.com/svnoss/bertos/trunk@1330 38d2e660-2303-0410-9eaa-f027e97ec537 --- bertos/cpu/arm/drv/pwm_arm.c | 48 ++++++++++++++++++++++++++++++++++++ bertos/cpu/arm/drv/pwm_arm.h | 48 ++++++++++++++++++++++++++++++++++++ bertos/cpu/avr/drv/pwm_avr.c | 48 ++++++++++++++++++++++++++++++++++++ bertos/cpu/avr/drv/pwm_avr.h | 48 ++++++++++++++++++++++++++++++++++++ 4 files changed, 192 insertions(+) create mode 100644 bertos/cpu/arm/drv/pwm_arm.c create mode 100644 bertos/cpu/arm/drv/pwm_arm.h create mode 100644 bertos/cpu/avr/drv/pwm_avr.c create mode 100644 bertos/cpu/avr/drv/pwm_avr.h diff --git a/bertos/cpu/arm/drv/pwm_arm.c b/bertos/cpu/arm/drv/pwm_arm.c new file mode 100644 index 00000000..9eb019b5 --- /dev/null +++ b/bertos/cpu/arm/drv/pwm_arm.c @@ -0,0 +1,48 @@ +/** + * \file + * + * + * \brief Low-level PWM module for ARM (inplementation). + * + * \version $Id$ + * + * \author Daniele Basile + * + */ + +#include + +#if CPU_ARM_AT91 + #include "pwm_at91.c" +/*#elif Add other ARM families here */ +#else + #error Unknown CPU +#endif diff --git a/bertos/cpu/arm/drv/pwm_arm.h b/bertos/cpu/arm/drv/pwm_arm.h new file mode 100644 index 00000000..f3e95e1c --- /dev/null +++ b/bertos/cpu/arm/drv/pwm_arm.h @@ -0,0 +1,48 @@ +/** + * \file + * + * + * \brief Low-level PWM module for ARM (interface). + * + * \version $Id$ + * + * \author Daniele Basile + * + */ + +#include + +#if CPU_ARM_AT91 + #include "pwm_at91.h" +/*#elif Add other ARM families here */ +#else + #error Unknown CPU +#endif diff --git a/bertos/cpu/avr/drv/pwm_avr.c b/bertos/cpu/avr/drv/pwm_avr.c new file mode 100644 index 00000000..d10988ad --- /dev/null +++ b/bertos/cpu/avr/drv/pwm_avr.c @@ -0,0 +1,48 @@ +/** + * \file + * + * + * \brief Low-level PWM module for AVR (inplementation). + * + * \version $Id$ + * + * \author Daniele Basile + * + */ + +#include + +#if CPU_AVR + #warning TODO:No AVR implementation of PWM. +/*#elif Add other AVR families here */ +#else + #error Unknown CPU +#endif diff --git a/bertos/cpu/avr/drv/pwm_avr.h b/bertos/cpu/avr/drv/pwm_avr.h new file mode 100644 index 00000000..81aeb0ab --- /dev/null +++ b/bertos/cpu/avr/drv/pwm_avr.h @@ -0,0 +1,48 @@ +/** + * \file + * + * + * \brief Low-level PWM module for AVR (interface). + * + * \version $Id$ + * + * \author Daniele Basile + * + */ + +#include + +#if CPU_AVR + #warning TODO:No AVR implementation of PWM. +/*#elif Add other AVR families here */ +#else + #error Unknown CPU +#endif -- 2.25.1