1
00:00:00,420 --> 00:00:08,310
It seemed initially successful now will just go ahead and try to export and hardware, including a bit

2
00:00:08,310 --> 00:00:12,380
steep, and they will proceed with launching LSD.

3
00:00:13,230 --> 00:00:21,900
So here we will start developing an application for our private time and the watchdog timer that we

4
00:00:21,900 --> 00:00:24,520
have to give private to the CPA.

5
00:00:25,090 --> 00:00:32,310
So now, since the best way to find out which are the drivers that should be utilized for a specific

6
00:00:32,330 --> 00:00:37,140
benefit, you just need to first create an application project already just go ahead.

7
00:00:37,140 --> 00:00:40,640
And first we will be working on end waste of time.

8
00:00:40,760 --> 00:00:43,610
Right click next and then select Hello.

9
00:00:43,620 --> 00:00:50,310
Now, the watchdog timer is useful, for example, as you have an application, so we always have an

10
00:00:50,310 --> 00:00:57,600
idea about what is the maximum time that our application could take to complete its entire operation.

11
00:00:57,830 --> 00:01:06,480
OK, so let's assume if we are stuck somewhere and then we exceed the time that our application should

12
00:01:06,480 --> 00:01:13,830
take in a normal, it is taking more time than the maximum time that we have computed for an application.

13
00:01:13,830 --> 00:01:23,310
And that is the easiest strategy is to restart our application so that this could bring out our application

14
00:01:23,310 --> 00:01:24,310
from a day, right?

15
00:01:24,330 --> 00:01:26,820
So that is where and most of them are useful.

16
00:01:26,820 --> 00:01:32,610
So it will keep a track of the time that our application is seeking.

17
00:01:32,910 --> 00:01:39,750
And if the application they secured within the specified limit, we will be restarting most of them

18
00:01:39,750 --> 00:01:40,350
right then.

19
00:01:40,770 --> 00:01:43,200
So in that case, it won't be visiting our system.

20
00:01:43,200 --> 00:01:49,790
But if the time consumed by our application is greater than the maximum specified limit in that year's

21
00:01:50,280 --> 00:01:55,890
time, we will need a reset signal and then that reset signal could be.

22
00:01:57,090 --> 00:02:01,020
Used to restart or bring back our application out of date.

23
00:02:01,170 --> 00:02:01,440
Right.

24
00:02:01,560 --> 00:02:06,660
In fact, we do have a function, so we have a specific function to check that there was the time where

25
00:02:06,660 --> 00:02:07,980
it expired or not.

26
00:02:08,010 --> 00:02:08,280
Right.

27
00:02:08,610 --> 00:02:12,600
So if that we didn't do that, basically meet our watchdog timer expired.

28
00:02:12,690 --> 00:02:13,620
Thank you.

29
00:02:13,680 --> 00:02:16,800
We will be understanding those things as we progress.

30
00:02:16,800 --> 00:02:20,100
But right now we have created a new application.

31
00:02:20,100 --> 00:02:26,880
Now you could see by default, you have a pseudonym A. You watchdog timer being enabled, right?

32
00:02:26,880 --> 00:02:33,450
And for that reason, you could see both of them are outdated and Mrs. White, and the driver for them

33
00:02:33,450 --> 00:02:37,060
is a pseudo bloody and sue time.

34
00:02:37,110 --> 00:02:37,470
All right.

35
00:02:38,070 --> 00:02:42,420
So we'll just be proceeding first with the washed-up payment, and then we'll proceed to the time where

36
00:02:42,420 --> 00:02:46,740
in fact, we're finding there are a lot of similarities between these two things.

37
00:02:47,670 --> 00:02:48,000
OK.

38
00:02:48,300 --> 00:02:52,950
So let me just go ahead, and the first thing that we do is to include the driver, right?

39
00:02:53,790 --> 00:02:56,010
So even though you would see it's you.

40
00:02:56,340 --> 00:02:59,250
But this doesn't exist in a snow control any.

41
00:02:59,510 --> 00:03:06,390
So this is how just the drivers that need to decide the independent block that we have within processing

42
00:03:06,390 --> 00:03:06,770
system.

43
00:03:07,050 --> 00:03:08,730
So let it just go ahead.

44
00:03:08,730 --> 00:03:15,650
And the next important we'll find which is experimenters, don't it?

45
00:03:15,680 --> 00:03:15,900
Right?

46
00:03:15,900 --> 00:03:18,060
So those are the two a device that we require.

47
00:03:18,100 --> 00:03:22,020
No, we'll just go ahead inside our washed up mode drivers.

48
00:03:22,470 --> 00:03:27,570
So some of the fundamentals, which are very, very useful, would just be going through them, right?

49
00:03:28,940 --> 00:03:29,810
So the.

50
00:03:30,960 --> 00:03:34,040
S x c u.

51
00:03:34,530 --> 00:03:40,320
Excess sea washed, optimal support following feature, so you have washed up mud, you have the timer

52
00:03:40,320 --> 00:03:42,800
mode and then you have a lot more.

53
00:03:43,020 --> 00:03:49,110
So what washed off more or less will be understanding in a washed up ward when the county reaches zero,

54
00:03:49,140 --> 00:03:58,680
the reset flag is sick, OK, in the risk stack is registered and the WD Reset request pin is asserted,

55
00:03:58,680 --> 00:04:00,120
granting the system reset right.

56
00:04:00,420 --> 00:04:08,930
So you would clearly see the reset flag is secondary six Typekit eight, causing a system reset rate.

57
00:04:09,920 --> 00:04:14,860
No, this research flag is not reset by normal process, be set down.

58
00:04:15,230 --> 00:04:18,150
We need to apply one to clear.

59
00:04:18,590 --> 00:04:21,500
This is the important thing to look now.

60
00:04:21,500 --> 00:04:26,870
This enable us to differentiate between normal risk and decent goals by watchdog time.

61
00:04:27,020 --> 00:04:36,440
Right now, use need to call a restart or stock them periodically to avoid resetting of system if watchdog

62
00:04:37,220 --> 00:04:41,660
reaches to the maximum crowd, that could, right?

63
00:04:42,880 --> 00:04:47,620
So now what we'll do is we'll understand some of the fundamental reality to Vostok, right?

64
00:04:47,980 --> 00:04:54,280
So the world of climate supports falling more, so we have a washed up mode, we have a timer mode and

65
00:04:54,280 --> 00:04:55,800
we have to reload, right?

66
00:04:56,110 --> 00:04:57,540
So what washed up movies?

67
00:04:57,550 --> 00:04:59,500
So we have certain foul rate.

68
00:04:59,770 --> 00:05:02,980
So we specified the Cold War and watched watchdog timer.

69
00:05:03,250 --> 00:05:03,680
OK.

70
00:05:03,700 --> 00:05:05,670
And it basically is a down count.

71
00:05:05,680 --> 00:05:08,940
And so whatever value is specified with start discriminating?

72
00:05:09,610 --> 00:05:10,660
OK with each clock.

73
00:05:11,260 --> 00:05:13,300
And we already know the lock.

74
00:05:13,300 --> 00:05:19,510
The gate, which are washed up timer will be operating, is half off the clock rate.

75
00:05:19,510 --> 00:05:24,280
So that is three three three megahertz now when Countdown reaches zero eight.

76
00:05:24,320 --> 00:05:28,690
So as soon as I count three two zero, the reset flag is sick, OK?

77
00:05:28,930 --> 00:05:32,100
In the three, this this right?

78
00:05:32,810 --> 00:05:36,080
And that basically God's system is right.

79
00:05:36,100 --> 00:05:38,170
This is an operation that we have in and washed up.

80
00:05:38,170 --> 00:05:42,340
More so will be simply specifying, OK, I'll start counting downward.

81
00:05:42,610 --> 00:05:50,080
And as soon as we reach is to zero, we will be resetting our system right and will also be setting

82
00:05:50,080 --> 00:05:50,670
the flag in.

83
00:05:50,790 --> 00:05:55,840
You 60 decided this right now this V60, this red.

84
00:05:55,840 --> 00:06:03,760
This flag cannot be decided by a normal processor is OK, and we need to clear it by writing a value

85
00:06:03,760 --> 00:06:04,450
of what right.

86
00:06:04,450 --> 00:06:11,110
And this help us to distinguish between whether the reset is caused by a watchdog timer timeout or whether

87
00:06:11,110 --> 00:06:13,090
it is caused by normal rate.

88
00:06:13,570 --> 00:06:20,050
So remember, if you do not want to reset your system, you need to periodically call it restart watchdog

89
00:06:20,050 --> 00:06:24,640
timer EPA OK, now before watchdog timer demonstrate.

90
00:06:25,450 --> 00:06:33,070
And then we also have an EPA is washed off expired to verify whether the washed up is the source of

91
00:06:33,070 --> 00:06:35,960
our last visit or whether it is normal.

92
00:06:36,380 --> 00:06:36,590
Right.

93
00:06:36,650 --> 00:06:44,470
So if the function returns true, right, and that is it basically been washed off is something which

94
00:06:44,470 --> 00:06:46,840
is causing the last systems, right?

95
00:06:47,860 --> 00:06:54,970
And application, they need to clear the risk, right, so this is the fundamental related to a washed

96
00:06:54,970 --> 00:06:55,120
up.

97
00:06:55,360 --> 00:06:59,170
Then second, when we have a timer rate again, we will be specifying the count.

98
00:06:59,530 --> 00:07:05,040
And then when we count the Regis to zero, the event flag is something that interrupts students register.

99
00:07:05,740 --> 00:07:11,860
And if interests are enabled, we have an interest pending in a queue with an idea of that, right?

100
00:07:11,860 --> 00:07:16,950
So this basically Genndy and intro as soon as the outer reaches to a zero rate.

101
00:07:16,960 --> 00:07:19,220
So this is what we refer to as it time.

102
00:07:19,480 --> 00:07:19,780
Right?

103
00:07:20,410 --> 00:07:21,610
So these are the two modes.

104
00:07:21,610 --> 00:07:24,810
As we probably saw, there will also be an ascending in order to reload.

105
00:07:25,270 --> 00:07:32,020
So these are some of the fundamental remembering that most of all, they need a reset signal for our

106
00:07:32,020 --> 00:07:35,350
system, whereas if we consider time a more to needs and interests.

107
00:07:35,350 --> 00:07:41,790
So as you progress further with an interest, we'll be understanding more on how we utilize it in a

108
00:07:41,800 --> 00:07:42,160
time.

109
00:07:42,640 --> 00:07:48,760
So we'll be majorly focusing in more sub mode as well as in auto reload mode here, right?

110
00:07:49,420 --> 00:07:55,990
Again, if you want to do driver, we have a two structure, set config structure and instant structure,

111
00:07:55,990 --> 00:07:59,980
so we'll just be declaring an instance of this to in our mean application.

112
00:08:00,130 --> 00:08:00,490
OK.

113
00:08:01,390 --> 00:08:05,830
So the instance structure will be keeping simple.

114
00:08:06,070 --> 00:08:11,210
And when we consider the config structure, we'll be considering it to be a pointer.

115
00:08:11,410 --> 00:08:16,840
So let me just go ahead and try to use what stock code, right?

116
00:08:17,890 --> 00:08:21,580
So we have an instance structure and we have a fixed structure now.

117
00:08:21,610 --> 00:08:27,910
We proceed with the function, which could be used to initialize a washed up name, right?

118
00:08:28,270 --> 00:08:33,160
So let me just go ahead and mean this function as washed in it.

119
00:08:34,510 --> 00:08:34,840
OK.

120
00:08:35,140 --> 00:08:40,180
And we already know an entire process, so we need to find out the lookup config function that is the

121
00:08:40,180 --> 00:08:43,630
first thing that we do where we need to spice the device.

122
00:08:44,000 --> 00:08:44,200
Right.

123
00:08:44,230 --> 00:08:46,180
So we do have a look at config function.

124
00:08:46,180 --> 00:08:54,160
So let's just go ahead and connect config structure that is to bloody conflict will be close to this,

125
00:08:54,400 --> 00:08:57,220
where we just need to buy a CE device 80.

126
00:08:57,220 --> 00:09:01,280
So we'll be finding our device add next parameter dot h file.

127
00:09:01,360 --> 00:09:03,680
OK, here we just need to look for it.

128
00:09:04,540 --> 00:09:10,020
And you could clearly see we have x s c you washed off, right?

129
00:09:10,030 --> 00:09:11,920
So we'll just be copying this device.

130
00:09:11,920 --> 00:09:14,390
Aldi will be adding it to work.

131
00:09:14,620 --> 00:09:14,920
Right.

132
00:09:14,940 --> 00:09:18,340
This is the first step that we do for an initialization.

133
00:09:18,340 --> 00:09:22,390
The next step is to call an CMG initialize, right?

134
00:09:23,790 --> 00:09:31,860
So let me just see it initially and to call it the result of CE of the initials, we'll just be declaring

135
00:09:31,860 --> 00:09:34,290
one integer variable stupid rate.

136
00:09:34,290 --> 00:09:35,780
Does that indicate the argument?

137
00:09:35,790 --> 00:09:43,110
First one is an instance structure, which is w d wtt and then we have a WTT config and finally the

138
00:09:43,110 --> 00:09:43,650
B side.

139
00:09:43,800 --> 00:09:50,270
So W d d config, then this operator and then we have obesity rate this completely adequate.

140
00:09:50,430 --> 00:09:55,860
Now we just need to add a logic to A5, whether it is equals to excess success rate.

141
00:09:57,350 --> 00:10:02,120
So here will just be very frank with you, does is with specificity sets, is it that is the case.

142
00:10:02,120 --> 00:10:08,810
We'll just be mentioning WTT in Texas will else we will just be mentioning that b d in it.

143
00:10:09,290 --> 00:10:09,590
Right.

144
00:10:09,890 --> 00:10:15,110
Whenever you are utilizing an intermediate benefited or a complex paper, the good idea will always

145
00:10:15,110 --> 00:10:22,010
be to perform a self-test so that we will be making sure that hardware is configured correctly.

146
00:10:22,190 --> 00:10:29,000
So once you make your initialization successful, try to use this, this variable and call the self-test.

147
00:10:29,000 --> 00:10:34,490
So we do find the self-test available for most of the intermediate and complex paper, right?

148
00:10:34,520 --> 00:10:38,270
Again, this also readiness that you do similar to our CFD initially.

149
00:10:38,270 --> 00:10:44,980
So this very well could be also utilized with this case right now when we consider this or if it retains

150
00:10:45,000 --> 00:10:46,160
existing Texas.

151
00:10:46,160 --> 00:10:49,100
So that basically means that this is successful, right?

152
00:10:50,150 --> 00:10:52,370
So let's just call a self-test.

153
00:10:52,940 --> 00:10:59,690
OK, just after we verify the device initialization is successful, they'll just be updating the value

154
00:10:59,690 --> 00:11:06,210
of status to be equals to so saying here we just need to pass the instance, such as we just WD.

155
00:11:06,410 --> 00:11:11,950
And again, we will be performing the same comparison rate.

156
00:11:11,960 --> 00:11:15,550
But here now, if it is equal to success.

157
00:11:15,560 --> 00:11:19,460
So self test is successful, OK?

158
00:11:19,460 --> 00:11:24,650
And we could just mention the self test fee, right?

159
00:11:24,920 --> 00:11:30,290
So this you should be performing when you are looking around with n complex or an intermediate, they

160
00:11:30,290 --> 00:11:30,980
use it right?

161
00:11:31,430 --> 00:11:36,200
So let me just go ahead and call this an emotion in a mean program, right?

162
00:11:36,200 --> 00:11:42,080
So we'll just be deleting this spring and we'll be calling WD any do it over here, right?

163
00:11:42,170 --> 00:11:44,390
And once you do this, this complete step with.

164
00:11:45,420 --> 00:11:47,950
That is performing an initialization of op ed.

165
00:11:48,280 --> 00:11:52,110
Now the good idea would be to A580 that op ed if it is working correctly.

166
00:11:52,140 --> 00:11:52,410
Right?

167
00:11:52,920 --> 00:11:55,770
So we'll go ahead and rule out my ridiculous.

168
00:11:58,070 --> 00:12:04,970
We go back when it's to get a minute, will connect to account for and then we'll try to execute our

169
00:12:04,970 --> 00:12:05,570
application.

170
00:12:05,920 --> 00:12:08,900
Right click runners launch on hardball.

171
00:12:09,530 --> 00:12:15,590
No, I read your notes to verify whether self defense and initialization boot is set, but that's at

172
00:12:15,590 --> 00:12:22,640
this rate, and you could verify that WD and it is successful as well as celltex is also a success rate,

173
00:12:22,640 --> 00:12:24,380
so this complete a step.

174
00:12:24,380 --> 00:12:28,280
It now will proceed for writing an application rate.

175
00:12:28,290 --> 00:12:36,060
So this will give you an idea about how you use different EPAs which are available that private WD.
