Skip to content

Commit bfa5167

Browse files
committed
[core/Tone] add comment
1 parent 4983e7d commit bfa5167

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

core/Tone.cpp

+10
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,16 @@
2020
#ifdef RTDUINO_TONE_HWTIMER_DEVICE_NAME
2121
static volatile uint8_t _tone_pin = RT_NULL;
2222

23+
24+
/**
25+
* @brief Callback function for tone frequency.
26+
*
27+
* This function is called when the tone frequency needs to be updated.
28+
*
29+
* @param dev The device associated with the callback.
30+
* @param size The size of the data (unused in this function).
31+
* @return The error code indicating the status of the callback.
32+
*/
2333
static rt_err_t _tone_freq_cb(rt_device_t dev, rt_size_t size)
2434
{
2535
RT_UNUSED(size);

0 commit comments

Comments
 (0)