diff options
author | gdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4> | 2010-11-26 19:24:34 +0000 |
---|---|---|
committer | gdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4> | 2010-11-26 19:24:34 +0000 |
commit | 9fe796d536f7a076977714139774c16582a48f98 (patch) | |
tree | 4e2179f707160e52de2468171cc8873c9d3c795b /demos/ARMCM3-STM32F100-DISCOVERY-GCC/main.c | |
parent | 06593fd3966ffff2ad5fbaaa14bbf82c61c4bd6a (diff) | |
download | ChibiOS-9fe796d536f7a076977714139774c16582a48f98.tar.gz ChibiOS-9fe796d536f7a076977714139774c16582a48f98.tar.bz2 ChibiOS-9fe796d536f7a076977714139774c16582a48f98.zip |
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@2428 35acf78f-673a-0410-8e92-d51de3d6d3f4
Diffstat (limited to 'demos/ARMCM3-STM32F100-DISCOVERY-GCC/main.c')
-rw-r--r-- | demos/ARMCM3-STM32F100-DISCOVERY-GCC/main.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/demos/ARMCM3-STM32F100-DISCOVERY-GCC/main.c b/demos/ARMCM3-STM32F100-DISCOVERY-GCC/main.c index 445872f00..6565aae8a 100644 --- a/demos/ARMCM3-STM32F100-DISCOVERY-GCC/main.c +++ b/demos/ARMCM3-STM32F100-DISCOVERY-GCC/main.c @@ -95,8 +95,8 @@ static const SPIConfig spicfg = { };
/*
- * PWM cyclic callback. PWM channels are reprogrammed using a duty cycle
- * calculated as average of the last sampling operations.
+ * PWM cyclic callback.
+ * A new ADC conversion is started.
*/
static void pwmpcb(PWMDriver *pwmp) {
@@ -112,6 +112,7 @@ static void pwmpcb(PWMDriver *pwmp) { /*
* ADC end conversion callback.
+ * The PWM channels are reprogrammed using the latest ADC samples.
* The latest samples are transmitted into a single SPI transaction. */
void adccb(ADCDriver *adcp, adcsample_t *buffer, size_t n) {
|