Skip to content

Commit b7f3b86

Browse files
dineshgit411LinjingZhang
authored andcommitted
cores/xmc: Add comment.
Signed-off-by: MDin <Dinesh.M-EE@infineon.com>
1 parent 39c4e3d commit b7f3b86

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

cores/xmc/Tone.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
#include "Arduino.h"
2-
#define CCU8V2
2+
#define CCU8V2 // for CCU8 PWM pins configure
33

44
class Tone {
55
public:
@@ -17,7 +17,7 @@ class Tone {
1717
XMC_GPIO_SetMode(pwm4->port_pin.port, pwm4->port_pin.pin,
1818
XMC_GPIO_MODE_OUTPUT_PUSH_PULL | pwm4->port_mode);
1919
XMC_CCU4_SLICE_StartTimer(pwm4->slice);
20-
20+
// count pulses for stop the timer once reached required pulses
2121
if (duration > 0) {
2222
uint32_t required_pulses = frequency * duration / 1000;
2323
for (uint32_t i = 0; i < required_pulses; i++) {

0 commit comments

Comments
 (0)