aboutsummaryrefslogtreecommitdiffstats
path: root/os/hal/templates/pwm_lld.h
diff options
context:
space:
mode:
authorgdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4>2011-04-01 13:21:02 +0000
committergdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4>2011-04-01 13:21:02 +0000
commitcf15276df33e24a72eedf38af97dde3f3404fce2 (patch)
tree6dff8618bb4c1f5ee989e0ef2368470d5a0dffde /os/hal/templates/pwm_lld.h
parent01b0220ffa200db034b0be6b0f464ec3344e3c15 (diff)
downloadChibiOS-cf15276df33e24a72eedf38af97dde3f3404fce2.tar.gz
ChibiOS-cf15276df33e24a72eedf38af97dde3f3404fce2.tar.bz2
ChibiOS-cf15276df33e24a72eedf38af97dde3f3404fce2.zip
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@2863 35acf78f-673a-0410-8e92-d51de3d6d3f4
Diffstat (limited to 'os/hal/templates/pwm_lld.h')
-rw-r--r--os/hal/templates/pwm_lld.h14
1 files changed, 5 insertions, 9 deletions
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
@@ -55,6 +55,11 @@
/*===========================================================================*/
/**
+ * @brief PWM mode type.
+ */
+typedef uint32_t pwmmode_t;
+
+/**
* @brief PWM channel type.
*/
typedef uint8_t pwmchannel_t;
@@ -65,15 +70,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
* or the callback, in this case the fields are ignored.