So here we are in an application project, we go to the board support package and look for the mandatory
driver files that are available for our watchdog timer.
So you go ahead and here you have a WD right and the recommended driver is CEO WTT right?
So we go ahead.
We're here.
Minami Hallowell, Dorsey again being sued, this tribe will find it so.
As you wtt don't lecture to this is the driver file that we have.
For the private one stop time.
One more point that we required, OK?
And that is experimenters started right.
This contains all the hardware related information.
Now, if you go to the watchdog timer driver, right by pressing an empty.
So you could clearly notice that a sea washed up time or of the following creature.
OK, so it's about the washed up mode timer mode and what is your counter gesture is a down count to
remember this thing, that it is a down count and start discriminating when the watch dog is standing
right?
So.
What are we going to do is we will be loading certain down, depending on the time.
You delay that one from a time.
Right, so depending on that, we will be counting the count that we need to set up, right?
So that count will be loading in a long time.
And with each clock ticking, we'll start counting.
Don't wait till the default mode, but all the operation of a washed off, they may sit down right.
So in a washed up mode whenever county just to zero.
Because we know that our counter is down counter, so whatever count that we say, it will start counting
down and after we.
Complete the time specified for the counter.
OK will reach to zero, so this will automatically said the reset flag.
OK, all the reset Steve resistor.
OK, and I basically call it a system reset, so if you want to avoid the system reset, you need to
periodically refresh.
You are out of.
OK, you are basically restudy your washed up time before it expires.
Right?
Only when we write a value of, oh, one two three six in a research studio registered, then only it
is clear, right?
So this helps us to distinguish between the normal process, the reset and the reset caused by a washed
off timer.
So this is the first more where we will be adding certain gown to the watchdog timer.
OK, and then it would start counting down as soon as it reaches zero.
If you do not restart the timer, call the system reset, right?
The second mode that we have is a timer.
So whenever counter you just was you.
The event flag is set in an industry does raise history, and if the interests are to in aged 30 is
set, their spending right, so this is what will happen in the time of war.
So this will generate an interest as soon as really just as the other one that we have is and to learn
more so as we discuss a fundamental understanding more on this, right?
Now, if you go through the functions which are provided in the driver, so again, we have a config
structure and an instance structure, right?
So these are exactly similar to what we've been doing from the beginning.
Right along with this, we have a function to check whether washed up timer it expired or not, whether
timer is expired or not.
So.
This to the function that are used to verify whether a timer is expired in and washed up mode or whether
our time is expired in it.
Timer, great, along with this, we also have a function to restart our watchdog timer to load a watchdog
timer with the specified value, depending on the delay that we want.
Then we have a specific function to set the mood right.
So set washed up mode for setting up the washed up mode.
We have an independent EPA.
Similarly, to set up the timer mode, we have an independent API, right?
The other functions which are available to access the register is the gate controlled register in the
second quarter of this year.
So these are the two functions that allow us to work around within register.
OK, then we have an hour to learn more.
OK, and then certain function to start and stop our was lockdown.
OK, so if you analyze we have a look up config and see if judicially right, so these are the EPA is
actually utilizing the previous example also to initialize it.
So what we want to do is we will be declaring a config structure, right?
So we go ahead and we declare the config structure.
Let me just name this as WTT config.
The next thing that we required is an instance such as we just copy this and then let it just need this
as what our favorite remember config section need to be a pointer.
Whereas the instance of journey not to the point, right?
So we go ahead and we declare the function which we refer to as NWA.
Anything?
OK?
And in this specific function will be adding all the function that could be used to initialize our benefit.
Right.
We go ahead and first generate the convict structures.
So how we generate conflicts of tourists, you will be calling a lookup config where you place the device.
So we go ahead and then washed timer config.
OK, this will be close to the lookup config.
Here we need to parse the device.
I write for our time.
That's where you find the device.
You just need to go to an experimental file and look for WD, right?
So you could clearly see all the data are related to a watchdog gamer.
So we just need to copy this device ID from here and we need to add it over here, right?
So once you add the device to the look of config function, this will automatically generate the config
structure.
Now, once we have a config structure, OK, we could call this CFG initialize, and this will help
us to initialize our wash off time up, right?
So we go ahead and do that with three other looking similar to our previous case.
First one is an instance of the next one that we have inside.
Config structure.
And then from a config structure itself, we could invoke the best interest rate.
So these are the three things which are the argument for us of judicial district and the seat is of
an initialization.
So the.
Did you write that, did this study to write, so let me just go ahead and call s32?
They just named it said status, right?
And then we need to verify whether initialization is successful or not.
So if initialization is successful, the tweet, as written will be existing success rate.
So that is what we want to do here.
So if status is existing success, we could mention that washed off time or any successful writer,
the ability to inject.
Successful right ends, as we could just mention the death.
OK.
WTT in it.
Right.
So whenever you are working with an intermediate and complex paper to see that after you perform an
initialization.
I can verify whether initialization is successful or not.
So after that, we also perform a self-test, so this will verify whether hardware is correctly configurable.
So we go to an issue watchdog timer and here we have a function to perform a the state.
So this just required an instance structured as an argument.
So we go in and there's also redundant status, which is the due date victory.
Again, we will be using the status variable.
OK, and in this case, we'll be connecting it to the self-restraint.
So this requires an instant structure, which is WTT and then will again be very fine.
Where there are initialization is successful or not great.
So here the only difference we will be replacing the init with self-destruct.
So these are the two things that we frequently do whenever we work with an intermediate and or complex
peripheral director along with performing initialization.
We also verify whether hardware is correctly configured by performing a self-destruct.
So usually you'll be finding the self-test.
I've been present in almost all the tried.