aboutsummaryrefslogtreecommitdiffstats
path: root/os/hal/src/pwm.c
diff options
context:
space:
mode:
authorgdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4>2009-12-08 07:42:49 +0000
committergdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4>2009-12-08 07:42:49 +0000
commit3b4b79d9bbaa2985d24cb94fd9833dbdabbddd79 (patch)
treebd6a58ca1b94282ad154d3e9d27eb471cd7386fa /os/hal/src/pwm.c
parent348922bb1cf72c4812256ee4b0317ac492d78ddb (diff)
downloadChibiOS-3b4b79d9bbaa2985d24cb94fd9833dbdabbddd79.tar.gz
ChibiOS-3b4b79d9bbaa2985d24cb94fd9833dbdabbddd79.tar.bz2
ChibiOS-3b4b79d9bbaa2985d24cb94fd9833dbdabbddd79.zip
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@1383 35acf78f-673a-0410-8e92-d51de3d6d3f4
Diffstat (limited to 'os/hal/src/pwm.c')
-rw-r--r--os/hal/src/pwm.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/os/hal/src/pwm.c b/os/hal/src/pwm.c
index ef4260629..f026a62ef 100644
--- a/os/hal/src/pwm.c
+++ b/os/hal/src/pwm.c
@@ -43,7 +43,7 @@ void pwmInit(void) {
void pwmObjectInit(PWMDriver *pwmp) {
pwmp->pd_state = PWM_STOP;
- pwmp->pwm_config = NULL;
+ pwmp->pd_config = NULL;
}
/**
@@ -130,7 +130,8 @@ void pwmEnableChannel(PWMDriver *pwmp,
/**
* @brief Disables a PWM channel.
- * @details The channel output line is returned to its idle state and disabled.
+ * @details The channel is disabled and its output line returned to the
+ * idle state.
*
* @param[in] pwmp pointer to the @p PWMDriver object
* @param[in] channel PWM channel identifier