From cf15276df33e24a72eedf38af97dde3f3404fce2 Mon Sep 17 00:00:00 2001 From: gdisirio Date: Fri, 1 Apr 2011 13:21:02 +0000 Subject: git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@2863 35acf78f-673a-0410-8e92-d51de3d6d3f4 --- os/hal/templates/pwm_lld.h | 14 +++++--------- 1 file changed, 5 insertions(+), 9 deletions(-) (limited to 'os/hal/templates/pwm_lld.h') diff --git a/os/hal/templates/pwm_lld.h b/os/hal/templates/pwm_lld.h index 9ef7a9853..c34694951 100644 --- a/os/hal/templates/pwm_lld.h +++ b/os/hal/templates/pwm_lld.h @@ -54,6 +54,11 @@ /* Driver data structures and types. */ /*===========================================================================*/ +/** + * @brief PWM mode type. + */ +typedef uint32_t pwmmode_t; + /** * @brief PWM channel type. */ @@ -64,15 +69,6 @@ typedef uint8_t pwmchannel_t; */ typedef uint16_t pwmcnt_t; -/** - * @brief PWM logic mode. - */ -typedef enum { - PWM_OUTPUT_DISABLED = 0, /**< Output not driven, callback only. */ - PWM_OUTPUT_ACTIVE_HIGH = 1, /**< Idle is logic level 0. */ - PWM_OUTPUT_ACTIVE_LOW = 2 /**< Idle is logic level 1. */ -} pwmmode_t; - /** * @brief PWM driver channel configuration structure. * @note Some architectures may not be able to support the channel mode -- cgit v1.2.3