aboutsummaryrefslogtreecommitdiffstats
path: root/os/hal/include
diff options
context:
space:
mode:
authorgdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4>2009-12-15 22:23:25 +0000
committergdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4>2009-12-15 22:23:25 +0000
commitba37ee4f4b32aa3dc67b80ce09cbda7c5a449f4f (patch)
tree156891d90cc977ed8b13165b86c846333d82d881 /os/hal/include
parent6716159ba1186d9360d80b4b2313b3a047055295 (diff)
downloadChibiOS-ba37ee4f4b32aa3dc67b80ce09cbda7c5a449f4f.tar.gz
ChibiOS-ba37ee4f4b32aa3dc67b80ce09cbda7c5a449f4f.tar.bz2
ChibiOS-ba37ee4f4b32aa3dc67b80ce09cbda7c5a449f4f.zip
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@1424 35acf78f-673a-0410-8e92-d51de3d6d3f4
Diffstat (limited to 'os/hal/include')
-rw-r--r--os/hal/include/pwm.h16
1 files changed, 3 insertions, 13 deletions
diff --git a/os/hal/include/pwm.h b/os/hal/include/pwm.h
index 5ca0083b8..55e890ea4 100644
--- a/os/hal/include/pwm.h
+++ b/os/hal/include/pwm.h
@@ -39,21 +39,11 @@ typedef enum {
} pwmstate_t;
/**
- * @brief PWM edge for callbacks.
- */
-typedef enum {
- PWM_NONE = 0, /**< @brief No callback. */
- PWM_TO_ACTIVE_EDGE = 1, /**< @brief Enable on idle->active. */
- PWM_TO_IDLE_EDGE = 2, /**< @brief Enable on active->idle. */
- PWM_BOTH_EDGES = 3 /**< @brief Enable on both edges. */
-} pwmedge_t;
-
-/**
* @brief PWM logic mode.
*/
typedef enum {
- PWM_ACTIVE_LOW = 0, /**< @brief Idle is logic level 1. */
- PWM_ACTIVE_HIGH = 1 /**< @brief Idle is logic level 0. */
+ PWM_ACTIVE_HIGH = 0, /**< @brief Idle is logic level 0. */
+ PWM_ACTIVE_LOW = 1 /**< @brief Idle is logic level 1. */
} pwmmode_t;
/**
@@ -61,7 +51,7 @@ typedef enum {
*
* @param[in] active current channel output state
*/
-typedef void (*pwmcallback_t)(bool_t active);
+typedef void (*pwmcallback_t)(void);
#include "pwm_lld.h"