Skip to content
Discussion options

You must be logged in to vote

So I figured it out:

Basically, I saw a count down going on when you hold PTT and I was wondering if I could make other countdown for the morse code function. So I asked chatgpt to make one and it worked!

The details are:

First I added this set of countdown variable and the reached variable at misc.c :

volatile uint16_t gCustomCountdown_10ms     = 0;
volatile bool    gCustomTimeoutReached = false;

Then I added additional decrement function in the scheduler.c :

void SystickHandler(void)
{
.... //rest of the codes
DECREMENT_AND_TRIGGER(gCustomCountdown_10ms, gCustomTimeoutReached);
}

This will basically make decrements to the gCustomCountdown_10ms then trigger the gCustomTimeoutReached into…

Replies: 2 comments 1 reply

Comment options

You must be logged in to vote
1 reply
@jason8098
Comment options

Comment options

You must be logged in to vote
0 replies
Answer selected by jason8098
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants
Converted from issue

This discussion was converted from issue #409 on June 24, 2025 12:39.