Skip to content

Commit

Permalink
[core/Tone] add comment
Browse files Browse the repository at this point in the history
  • Loading branch information
mysterywolf committed Jan 21, 2024
1 parent 4983e7d commit bfa5167
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions core/Tone.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,16 @@
#ifdef RTDUINO_TONE_HWTIMER_DEVICE_NAME
static volatile uint8_t _tone_pin = RT_NULL;


/**
* @brief Callback function for tone frequency.
*
* This function is called when the tone frequency needs to be updated.
*
* @param dev The device associated with the callback.
* @param size The size of the data (unused in this function).
* @return The error code indicating the status of the callback.
*/
static rt_err_t _tone_freq_cb(rt_device_t dev, rt_size_t size)
{
RT_UNUSED(size);
Expand Down

0 comments on commit bfa5167

Please sign in to comment.