Let us try to modify this school so that we able to observe the seam or to reload kind of behavior.
OK.
And to understand that when you do that, we have strict who will be keeping this logic as it is, right?
So this will continue to be very frank with the timer is expired or not.
And it will also be printing the values of the timer at a regular interval of 500 millisecond rate.
The only change that we going to do is first, the religious to see a lot of rate.
So we are at this table over here, so the logic that we have written once we finish our specified delays,
we are stopping our timer.
Then we are clearing up the initial interrupt status so that basically allow us to reduce our ZEW timer.
Is expired function right?
Then we are mentioning the timer expired message to a user by sending the string to a console, and
then we are again starting our time.
All right.
So this is what we are doing in a previous case when we are working with a lot more.
Remember that we're in to this is still required because we want to again use the zoo time is expired
function, right?
The only thing that we're going to do is before we start our timer, we just need to restart our conversation
that is happening automatically in the previous case due to an auto or more.
But now, since we have disabled an auto loan work, so we go ahead and we look for a function that
could be used to reload the counter value into the counter at the store.
So we have a function referred to as a restart timer.
So this allows us to read the timer all register and write the same value to the lower register.
So to update the account to read the stand is just required, an instance structured as an argument.
So what this will do is once we call this function and that instance structure as an argument, OK,
so instance for us is what this will do is this will automatically load a timer with the value that
you specified.
In this case, it is stable, so it will automatically reload our timer with this value, right?
And that is what we are expecting out of this application, right?
Right.
To just proceed to build an application project plus.
So what are Bailey's finish?
Well, we will be.
Just selecting the configuration and click on view launch, but the great.
So this will automatically start a process of programming.
And then since we already collected our way, this terminal to a clear terminal.
You just need to click on the resume button to start our application rates.
The first two message will be timely and it's successful, then sent this successful.
Then we get a series of stream to describe the value of a counter, then as our counter reaches to a
value of zero, we get the delay of five second issue again, a series of the value because we successfully
reloaded our timer register again, the low five second rate.
So you could really observe the effect that we are getting then or two or more could be achieved a restart
time or else.