aboutsummaryrefslogtreecommitdiffstats
path: root/os/hal/platforms
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/platforms
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/platforms')
-rw-r--r--os/hal/platforms/STM32/pwm_lld.h16
1 files changed, 10 insertions, 6 deletions
diff --git a/os/hal/platforms/STM32/pwm_lld.h b/os/hal/platforms/STM32/pwm_lld.h
index 4ce073aad..879012451 100644
--- a/os/hal/platforms/STM32/pwm_lld.h
+++ b/os/hal/platforms/STM32/pwm_lld.h
@@ -78,7 +78,13 @@ typedef uint16_t pwmcnt_t;
* @note It could be empty on some architectures.
*/
typedef struct {
-
+ /**
+ * @brief Periodic callback pointer.
+ * @details This callback is invoked on PWM counter reset. If set to
+ * @p NULL then the callback is disabled.
+ */
+ pwmcallback_t pc_callback;
+ /* End of the mandatory fields.*/
} PWMConfig;
/**
@@ -91,11 +97,9 @@ typedef struct {
*/
pwmmode_t pcc_mode;
/**
- * @brief Channel callback edges.
- */
- pwmedge_t pcc_edge;
- /**
- * @brief Channel callback pointer.
+ * @brief Channel callback pointer.
+ * @details This callback is invoked on the channel compare event. If set to
+ * @p NULL then the callback is disabled.
*/
pwmcallback_t pcc_callback;
/* End of the mandatory fields.*/