1
00:00:00,550 --> 00:00:07,670
You initially said this would be go ahead and first export then hardware for three to five export export

2
00:00:07,680 --> 00:00:10,790
hardware, and this will be you being a bit right.

3
00:00:11,490 --> 00:00:17,060
So the location where we have our project, this project and go forty four, I will finish, right?

4
00:00:17,410 --> 00:00:24,870
Once you successfully exporting hardware platform, we go ahead to tools and then launch of it is a.

5
00:00:26,290 --> 00:00:26,560
OK.

6
00:00:26,860 --> 00:00:34,900
And here we have the workspace, which is selected by the vitesses project and disco quality.

7
00:00:34,930 --> 00:00:41,350
Now this is our previous project that director will just be going to browse button and then we will

8
00:00:41,350 --> 00:00:43,330
be choosing our project and the school.

9
00:00:43,330 --> 00:00:44,110
Forty four.

10
00:00:44,320 --> 00:00:46,990
So this is the director where we have I do not project great.

11
00:00:47,410 --> 00:00:51,570
We go ahead and then first invoke and hide, right?

12
00:00:51,610 --> 00:00:53,530
So we click on Create like on project.

13
00:00:53,800 --> 00:00:55,780
They just name this as an e-mail.

14
00:00:56,220 --> 00:01:00,280
The next hook, we click on browse button and they.

15
00:01:01,560 --> 00:01:06,990
Project and fiscal forty four, where we have our excessive fight rate, so once we successfully invoke

16
00:01:07,440 --> 00:01:11,190
the hardware excessive fight, we just click finish, right?

17
00:01:11,970 --> 00:01:17,070
Now this will create a platform project with our high specification.

18
00:01:18,660 --> 00:01:25,040
So one, our black home project is ready, just proceed to build and platform project, right, so press

19
00:01:25,050 --> 00:01:28,620
control be to start a process of building a project.

20
00:01:30,080 --> 00:01:37,220
So once Billy successful, we go ahead, select the Black Phone project, right click new and then we

21
00:01:37,220 --> 00:01:39,290
create an application project director.

22
00:01:39,650 --> 00:01:43,190
We will be using e-mail, which is the platform project that we provide.

23
00:01:43,310 --> 00:01:46,490
And we named this as the email on the school system.

24
00:01:46,810 --> 00:01:54,720
Right click next and then select the standalone on the seven and the Halloway campaign, right?

25
00:01:55,930 --> 00:02:03,100
So once we have our template, we just go to the BSP, find dates automatically, as you add an application

26
00:02:03,100 --> 00:02:08,470
project, you have your EMI open over here, OK, and that consist of and will support package, right?

27
00:02:08,710 --> 00:02:13,480
So this will highlight the driver that you need to utilize for an EMI, right?

28
00:02:13,840 --> 00:02:16,000
So if you go ahead for.

29
00:02:17,360 --> 00:02:24,020
For the GPIO zero, right, so this is an extra port that is added, if you remember in our block design,

30
00:02:24,080 --> 00:02:25,400
if you go to.

31
00:02:26,730 --> 00:02:32,670
The block is a right, so they stop what we decided when we and my list and it right.

32
00:02:32,910 --> 00:02:36,990
And if you go to a White House aide and explore a bootable package.

33
00:02:37,560 --> 00:02:43,920
So P.S. seven dubious the right tool for this the recommended driver is against UPI appears right.

34
00:02:44,340 --> 00:02:48,060
So we go to the suit, stepped in and had to wait or see.

35
00:02:48,240 --> 00:02:48,540
Right?

36
00:02:49,720 --> 00:02:56,530
So let us include the mandatory tribal fight, say so first one is for a GPIO bias.

37
00:02:58,010 --> 00:03:04,580
We need to include next year's storage rate, so this allows us to get an access to all the apps that

38
00:03:04,580 --> 00:03:12,800
will interact with our e-mail right then we need to also include expert Amidu's.

39
00:03:14,170 --> 00:03:17,190
Darn right, someone's this two rival, Pfizer added.

40
00:03:18,130 --> 00:03:19,700
We proceed to Jupiter.

41
00:03:20,140 --> 00:03:27,010
But no, then that process of initialization is all going to will be following the same process to perform

42
00:03:27,010 --> 00:03:27,950
an initialization.

43
00:03:27,970 --> 00:03:28,210
Right?

44
00:03:28,690 --> 00:03:29,890
So we have a two structure.

45
00:03:29,920 --> 00:03:31,570
First one is a conflict structure.

46
00:03:32,900 --> 00:03:38,810
And then this will be declaring as the pointer, right, so that it doesn't even this as e-mail conflict,

47
00:03:39,260 --> 00:03:41,360
then we required an instant structure.

48
00:03:41,450 --> 00:03:41,690
Right.

49
00:03:41,690 --> 00:03:44,930
So this will be our instant structure.

50
00:03:45,140 --> 00:03:47,030
OK, then we declared one.

51
00:03:48,510 --> 00:03:53,750
GPI init function, OK, that could be used to initialize our thing, right?

52
00:03:53,910 --> 00:03:59,920
Again, if we go to LP GPI Ops, so we have to look up config where we need to parse the device.

53
00:04:00,300 --> 00:04:04,980
So we just copy this look up on fake, OK, and this returns the config structure.

54
00:04:04,980 --> 00:04:06,990
So I can't fix structures.

55
00:04:07,000 --> 00:04:08,690
E-mail on.

56
00:04:09,150 --> 00:04:13,110
OK, and this will be quest to look up config where we need to pass the device.

57
00:04:13,380 --> 00:04:19,740
So to find out the device had you go to an X parameter dotage and look for gubio.

58
00:04:20,420 --> 00:04:22,780
So here we have our GPI seat, right?

59
00:04:23,160 --> 00:04:25,620
We'll just be copying this device, right?

60
00:04:25,710 --> 00:04:31,590
So we go ahead and we add the GPIO and the school 028 site.

61
00:04:32,460 --> 00:04:36,030
Once this is done now, we could go the CFD initialize.

62
00:04:37,710 --> 00:04:42,480
And this required the argument, right, so first one is an instance structure, then we have a conflict

63
00:04:42,480 --> 00:04:43,860
structure and a peace address.

64
00:04:44,520 --> 00:04:47,160
And this returns the details of initialization.

65
00:04:47,170 --> 00:04:50,880
So this basically returns s32, right?

66
00:04:50,880 --> 00:04:54,570
So we will be declaring a variable of study to date.

67
00:04:56,280 --> 00:04:57,960
Sue S32, OK.

68
00:04:57,980 --> 00:05:04,320
And this will be during the status of initialization, this will be a quiz to see if she initialize

69
00:05:04,320 --> 00:05:10,290
the first argument is the pointer to an instance structure, so we'll just be adding an ampersand.

70
00:05:10,290 --> 00:05:12,930
Then we have e-mail, which is our.

71
00:05:13,950 --> 00:05:20,580
Instead, structure, then we have e-mail conflict, which is our conflict structure, and we could

72
00:05:20,880 --> 00:05:26,200
access the base address from e-mail conflict and then be set straight.

73
00:05:26,220 --> 00:05:33,020
So this way this has step that we need to perform to initialize up fitted right.

74
00:05:33,120 --> 00:05:39,480
Then we will just be verifying where the status is equals to access 60 success.

75
00:05:39,490 --> 00:05:41,940
If that is the case, we'll just be mentioning.

76
00:05:43,370 --> 00:05:43,700
OK.

77
00:05:44,800 --> 00:05:48,070
Device in it, successful.

78
00:05:49,060 --> 00:05:49,440
OK.

79
00:05:49,570 --> 00:05:51,520
As we could just mention.

80
00:05:52,810 --> 00:05:55,780
Device in it, free rate.

81
00:05:56,910 --> 00:06:02,280
So this complete the process of initialization will be calling this GPI only done in our main application,

82
00:06:02,290 --> 00:06:06,230
right, so unique platform will perform an initialization step for our work.

83
00:06:06,480 --> 00:06:12,840
This allow us to direct easily with a cancer rate without performing any initialization and then we

84
00:06:12,840 --> 00:06:14,040
are calling upon it.

85
00:06:14,070 --> 00:06:17,550
So this will also perform an initialization of what EMI verify.

86
00:06:17,610 --> 00:06:23,760
Right now, we need to correctly said today we configuring EMI says that we work with an entity.

87
00:06:23,790 --> 00:06:25,510
OK, so this represent an output.

88
00:06:25,510 --> 00:06:30,300
But now we go ahead and we work around the defense.

89
00:06:30,550 --> 00:06:34,760
So we have an API to work with the pin to set the direction.

90
00:06:34,770 --> 00:06:41,210
We have a sedation pin API where we need to pass an instance, such a pin number and the radiation rate,

91
00:06:41,220 --> 00:06:42,120
so we go ahead.

92
00:06:43,620 --> 00:06:45,990
And then we will be.

93
00:06:46,920 --> 00:06:54,750
The instant structure for us is the email, then the pin number to remember a Meyiwa number from zero

94
00:06:54,750 --> 00:06:55,380
to 53.

95
00:06:55,590 --> 00:07:02,050
So first year, my open will be having a number of 50 for you want to set it to work as output.

96
00:07:02,100 --> 00:07:04,110
So we just need to see it right.

97
00:07:04,530 --> 00:07:08,730
And then we copy a Disney API with no since we have a plan to work on for a week.

98
00:07:08,970 --> 00:07:13,560
We need to set the direction for all pain rates that have been taken and the pin number for sick and

99
00:07:13,560 --> 00:07:14,890
elderly will be 55.

100
00:07:15,300 --> 00:07:20,130
Then we have 56 and last will have in numbers 50 set right.

101
00:07:20,140 --> 00:07:26,190
So this will automatically set the all the EMI open to work as an output.

102
00:07:26,680 --> 00:07:30,690
So one this system, we will be trying to generate the.

103
00:07:31,880 --> 00:07:36,050
Blinking effect on all the foolery, right, so how we do that is why we.

104
00:07:37,070 --> 00:07:42,410
OK and do right the value to analogy we have right beneath you, right?

105
00:07:42,890 --> 00:07:47,240
Well, this required and it's just structure, a pin number and the data that we want direct, right?

106
00:07:47,300 --> 00:07:49,510
So you will be going ahead.

107
00:07:49,520 --> 00:07:53,230
And we already know that the ancient structure is EMU.

108
00:07:53,240 --> 00:07:55,610
The pin number for for Australians is 54.

109
00:07:55,910 --> 00:08:02,600
Let it just assume that first we ride one to all the right, so we just need to change the pin number

110
00:08:02,880 --> 00:08:07,510
before fifty five, fifty six and fifty seven, right?

111
00:08:07,520 --> 00:08:11,360
Then we wait for let's assume you second, right?

112
00:08:11,720 --> 00:08:16,810
And then we again copy this all right, brain function.

113
00:08:16,820 --> 00:08:20,480
But now we will be writing the value us.

114
00:08:22,030 --> 00:08:22,870
See, right.

115
00:08:23,800 --> 00:08:31,870
So here we will be changing their data from one to see again, we wait for two second rate.

116
00:08:32,110 --> 00:08:39,850
So one last thing as we complete our goal is to make sure that we enable and them so this we need to

117
00:08:39,850 --> 00:08:43,230
do whenever we have a tri state constraint.

118
00:08:43,240 --> 00:08:45,860
So if you also block design, right?

119
00:08:45,870 --> 00:08:52,420
So if you click on this, you underscore zero, you could actually see we could use this as an input

120
00:08:53,200 --> 00:08:53,770
and output.

121
00:08:54,040 --> 00:08:55,650
Then we have a price, right?

122
00:08:55,660 --> 00:09:01,200
So whenever you find the pin having such kind of behavior?

123
00:09:01,450 --> 00:09:04,690
OK, then in that case, you also need to enable rates.

124
00:09:04,690 --> 00:09:09,930
So that's that is how you will be reading or writing to operate.

125
00:09:10,030 --> 00:09:14,370
So in this case, we now know that our pin is dry street, right?

126
00:09:14,410 --> 00:09:21,310
We need to enable and then only whatever value that we seem to have will be getting on it right.

127
00:09:21,310 --> 00:09:28,380
So to do that, we have a function which I refer to as the GPO you set out to.

128
00:09:29,240 --> 00:09:29,460
Right.

129
00:09:29,470 --> 00:09:34,210
So this allows us to we just explore the functionality of it, right?

130
00:09:34,540 --> 00:09:40,650
So this allows us to enable output of the specific thing, right?

131
00:09:40,660 --> 00:09:47,610
So valid values are zero for disabling and I'll put in it and one for enabling and I'll write.

132
00:09:47,650 --> 00:09:53,440
So we need to enable an output, so we need to add one as the argument.

133
00:09:53,710 --> 00:09:55,240
So we just copy this function.

134
00:09:55,630 --> 00:09:58,540
We go ahead to our mean program.

135
00:09:58,720 --> 00:09:59,560
OK, and here.

136
00:10:01,100 --> 00:10:07,670
The first argument that disfunction have is to instill structure, then the pin number, right, so

137
00:10:08,240 --> 00:10:09,650
54, is that the number?

138
00:10:10,650 --> 00:10:14,560
Then we need to enable an output, so we need to add one to it, right?

139
00:10:15,090 --> 00:10:20,280
Similarly, we copy this and then we do this for the rest of the panel.

140
00:10:20,500 --> 00:10:20,770
All right.

141
00:10:20,790 --> 00:10:25,230
So we have fifty four, fifty five, fifty six and fifty seven.

142
00:10:25,590 --> 00:10:29,140
We enable an output for all the bits.

143
00:10:29,200 --> 00:10:34,890
OK, so this you need to do whenever you find out the pen, have a try st Typekit, right?

144
00:10:34,900 --> 00:10:41,660
So as soon as you find out that the pin that you are utilizing in a blocked design consist of a tri

145
00:10:41,670 --> 00:10:49,050
stream driver, OK, you need to enable an output and then only you able to read or write the data from

146
00:10:49,350 --> 00:10:50,340
back to once this is done.

147
00:10:50,670 --> 00:10:57,300
Now we are ready to write the letter to the LC, so let me just see our code and build an entire application

148
00:10:57,300 --> 00:10:59,040
project to just press control.

149
00:10:59,460 --> 00:11:02,670
This will automatically initiate the process of building our project.

150
00:11:04,000 --> 00:11:10,330
And once Bill is finished, we select our application project, right click Debug s launch on Hard,

151
00:11:10,480 --> 00:11:13,250
Right, so this will automatically program our SPG.

152
00:11:15,060 --> 00:11:20,330
Nuanced programming is done, we go ahead and we connect to our serial terminal to the respect to come

153
00:11:20,370 --> 00:11:22,170
great, so we click on this plus button.

154
00:11:22,740 --> 00:11:26,310
Then we choose cornflour and one one five two zero zero as.

155
00:11:26,780 --> 00:11:27,090
Great.

156
00:11:27,390 --> 00:11:31,830
Now only thing that you need to do to execute an application is to click on this resume.

157
00:11:31,830 --> 00:11:36,260
But the right could clearly see we have device and it's successful right now.

158
00:11:36,270 --> 00:11:44,130
And if you observe the eyelids, you could actually see a blinking effect at an interval of about two

159
00:11:44,130 --> 00:11:44,470
seconds.
