1
00:00:01,200 --> 00:00:02,520
Hello, welcome back.

2
00:00:03,270 --> 00:00:11,400
So in this first lesson or in this first practical lesson, we're going to see how to create tasks.

3
00:00:12,350 --> 00:00:19,100
In our free ARTUS real time system, I'm going to create a new project by coming over here, project

4
00:00:19,100 --> 00:00:22,480
new estimate, 32 projects like this over here.

5
00:00:27,220 --> 00:00:33,490
I'll select my board over here, I'll search ASTM 32 for one one.

6
00:00:34,610 --> 00:00:41,630
I'm using DSM three to four one one nucleo, so I'll select this over here and then I'll click next.

7
00:00:43,460 --> 00:00:46,400
Next, it's down here, it's out of the screen.

8
00:00:48,840 --> 00:00:57,960
This is next click next over here and then I'll give this project a name, I'll call it task creation.

9
00:01:06,990 --> 00:01:13,740
And then over here to get to prototype, I'm going to keep it at SDM 32 Cube because we need to go to

10
00:01:13,740 --> 00:01:20,040
SDM 32 Cube to include our Toscano and also to include the Toynbee's.

11
00:01:20,490 --> 00:01:22,310
We could just use empty bay.

12
00:01:22,320 --> 00:01:26,880
If we use empty, we would have to manually include the frittatas files.

13
00:01:27,450 --> 00:01:31,170
We have to go and download the files and manually include them to our path.

14
00:01:31,530 --> 00:01:33,900
So I'll use them to 32 over here.

15
00:01:34,800 --> 00:01:36,390
OK, so I'll click next.

16
00:01:37,420 --> 00:01:38,830
And then I'll click finish.

17
00:01:41,080 --> 00:01:47,050
So it says device configuration to ED associated with device configuration to perspective, do you want

18
00:01:47,050 --> 00:01:49,200
to open this perspective now?

19
00:01:49,300 --> 00:01:50,110
I would say yes.

20
00:01:54,700 --> 00:02:03,040
So this is the the Cuba mix perspective, so I should mention we're not going to be creating our artists

21
00:02:03,040 --> 00:02:10,480
using Cuba mics, we simply need to include the middleware and then select the time we want to use as

22
00:02:10,480 --> 00:02:11,470
the artists can.

23
00:02:11,620 --> 00:02:12,280
Time, Time-Based.

24
00:02:13,200 --> 00:02:18,510
And then we're going to go and quote the task creation to semaphore creation, we're going to quote

25
00:02:18,510 --> 00:02:19,800
all of that from scratch.

26
00:02:20,160 --> 00:02:28,800
And then when we get to where we've learnt all the various APIs of the arm of the Artosis, then then

27
00:02:28,800 --> 00:02:29,820
we'll learn how to.

28
00:02:30,940 --> 00:02:37,560
Enable that use in Cuba without writing code and then learn how to apply something known as the Simms's

29
00:02:37,560 --> 00:02:42,390
ARTUS APIs, but for now we simply going to write the better free ARTUS.

30
00:02:42,390 --> 00:02:44,370
We're going to use the free Arktos functions.

31
00:02:44,790 --> 00:02:51,290
There's a layer on top of free Archos known as Simms's artists, which wraps around a free ARTUS functions.

32
00:02:51,540 --> 00:02:53,700
We shall see how to use those later.

33
00:02:54,930 --> 00:02:57,570
So this is how, Chip, it's giving us an image of it.

34
00:02:58,980 --> 00:03:00,380
I'm going to come over here.

35
00:03:01,590 --> 00:03:07,710
Middleware, drop this and then I'll select free artists over here, and then, as you can see, it's

36
00:03:07,710 --> 00:03:11,910
asking what I want to use Simms's V1 or Simms's V. to isolate Simms's V2.

37
00:03:12,630 --> 00:03:13,020
Right.

38
00:03:13,500 --> 00:03:15,720
So after we've selected.

39
00:03:18,560 --> 00:03:24,680
This this fall opens all this bit here, open scientific parameters, this allows us to configure our

40
00:03:24,680 --> 00:03:25,820
artist parameters.

41
00:03:26,000 --> 00:03:32,720
The version of free artists used here is the ten point two, ten point two point one, and then it's

42
00:03:32,720 --> 00:03:40,190
telling us the system clock, this is our take rate and then maximum name length, we can give our tasks

43
00:03:40,940 --> 00:03:41,590
names.

44
00:03:41,600 --> 00:03:47,780
And this is the number of characters that the name can have, things like that.

45
00:03:47,960 --> 00:03:53,990
So all of this, we would see how to configure them manually so we wouldn't do any configurations here.

46
00:03:55,250 --> 00:04:03,050
OK, let's go other topics here, let's see and when we create this, it automatically creates a task

47
00:04:03,050 --> 00:04:03,490
for us.

48
00:04:03,500 --> 00:04:06,500
So there is this difficult task that is created.

49
00:04:07,880 --> 00:04:10,530
Right, we cannot remove it, so I'll keep it.

50
00:04:10,640 --> 00:04:15,650
I I'll just leave it like this, but when we go to our code, we delete it and start writing the tasks

51
00:04:15,890 --> 00:04:16,580
from scratch.

52
00:04:16,940 --> 00:04:19,250
OK, so once you've included this.

53
00:04:21,120 --> 00:04:24,360
Once you've included the middle where?

54
00:04:26,120 --> 00:04:28,790
Then all you have to do is select your time.

55
00:04:28,930 --> 00:04:35,780
So what we did, just to recap, we came to free toes here on the middle were and then we selected Simms's

56
00:04:35,780 --> 00:04:36,260
V2 two.

57
00:04:36,270 --> 00:04:37,680
That's all we've done so far.

58
00:04:38,300 --> 00:04:40,640
So once that is done, we go into.

59
00:04:43,110 --> 00:04:45,450
We're going to come over here to system call.

60
00:04:46,600 --> 00:04:53,740
And then under system here and a time this year, we're not going to use system, it's recommended to

61
00:04:53,740 --> 00:04:55,090
use a different time base.

62
00:04:55,330 --> 00:04:58,060
So I use time as one as the time base.

63
00:05:00,210 --> 00:05:08,100
OK, so once that is done, one other thing I'll do over here is enable our Ewart's so that we can use

64
00:05:08,100 --> 00:05:15,330
the you out to debug our artists so that you are just connected to a one and two.

65
00:05:15,840 --> 00:05:22,380
One way to enable the you are to module is to simply come to connectivity and then you go to use that

66
00:05:22,380 --> 00:05:25,500
to you are to use its means.

67
00:05:25,500 --> 00:05:29,070
The same thing it's written you Satya because you.

68
00:05:29,070 --> 00:05:37,050
S stands for Universal Synchronoss asynchronous receiver transmitter because we often use just the asynchronous

69
00:05:37,050 --> 00:05:37,440
bits.

70
00:05:37,470 --> 00:05:40,040
We often see just you out without.

71
00:05:40,070 --> 00:05:40,530
Yes.

72
00:05:40,890 --> 00:05:42,060
So it's the same what you.

73
00:05:43,100 --> 00:05:50,260
So I just clicked here, USA to this is the one which is connected to our USB port, our come to mode

74
00:05:50,270 --> 00:05:56,900
over here and then our select asynchronous mode, like I mentioned earlier, and I'll leave everything

75
00:05:56,900 --> 00:05:57,590
here the same.

76
00:05:59,060 --> 00:06:01,520
Right, and then I'll close this.

77
00:06:03,740 --> 00:06:04,370
And then.

78
00:06:08,760 --> 00:06:12,990
Click here to generate the code, this this symbol here.

79
00:06:14,830 --> 00:06:21,150
This auction can be associated with a C slash C++ perspective, do you want to open this perspective?

80
00:06:21,550 --> 00:06:22,440
I'll say yes.

81
00:06:22,960 --> 00:06:28,950
So whenever the perspective is about to switch, we receive a message, OK?

82
00:06:37,800 --> 00:06:40,710
So it says device configuration to update an.

83
00:06:43,000 --> 00:06:44,130
OK, here we go.

84
00:06:48,380 --> 00:06:52,560
So our project is here in the corner here.

85
00:06:52,850 --> 00:06:53,450
The target.

86
00:06:54,030 --> 00:06:54,580
OK.

87
00:06:59,740 --> 00:07:01,300
Let me switch the perspective.

88
00:07:02,310 --> 00:07:06,540
OK, so what are we going to do is I'm going to come to a window here and come to Perspective's.

89
00:07:07,500 --> 00:07:10,050
And then open perspective.

90
00:07:12,390 --> 00:07:13,860
Also, research perspective.

91
00:07:15,110 --> 00:07:16,310
Research over here.

92
00:07:16,430 --> 00:07:22,520
OK, so this the one we are all used to when it comes to clips, you have your project explorer here.

93
00:07:23,600 --> 00:07:25,270
OK, so this is our project.

94
00:07:25,280 --> 00:07:27,140
It's collected all the files, like I said.

95
00:07:27,140 --> 00:07:29,360
Well, we were interested in the.

96
00:07:31,100 --> 00:07:39,320
The path to this project, Mindiola, but Cuba allows us just to click and include.

97
00:07:40,180 --> 00:07:47,860
OK, so before we continue, I'm going to go ahead and increase the font size, I'll come to window

98
00:07:47,890 --> 00:07:49,150
preferences over here.

99
00:07:51,190 --> 00:07:51,790
And then.

100
00:07:56,430 --> 00:07:57,390
Come to general.

101
00:08:01,010 --> 00:08:06,410
Or drop down, general, like this, and then I can come to editors over here.

102
00:08:08,810 --> 00:08:10,760
Let's see Pierrot's.

103
00:08:17,170 --> 00:08:19,510
So, General, over here, editors.

104
00:08:20,540 --> 00:08:28,280
I'll drop down text editors or I can simply open text editors, so general editors, text editors,

105
00:08:28,460 --> 00:08:29,570
colors and phones.

106
00:08:30,520 --> 00:08:34,300
And then this opens and then I click here to edit.

107
00:08:36,140 --> 00:08:40,010
And then over here, I could choose 14, I'll say, OK.

108
00:08:41,730 --> 00:08:42,300
PLI.

109
00:08:45,760 --> 00:08:47,230
That's 14 look big enough.

110
00:08:50,130 --> 00:08:53,340
OK, so I'll close now applying close.

111
00:08:56,100 --> 00:09:02,370
OK, so this is what we have and then so to simplify what we've got here, I'm going to clean.

112
00:09:03,840 --> 00:09:11,850
I'm going to clean everything right, except the the time these and the include, so.

113
00:09:14,610 --> 00:09:21,540
No comment, I'm going to clean this right at this stage, you wouldn't know what this means.

114
00:09:21,930 --> 00:09:23,240
So this is clean as well.

115
00:09:26,240 --> 00:09:27,170
This one to.

116
00:09:33,410 --> 00:09:44,160
This so I'm simply removing the comments so that you see how simple the whole thing is with the comments.

117
00:09:44,540 --> 00:09:46,130
It's hard to know which is which.

118
00:09:48,060 --> 00:09:49,380
OK, so clean this.

119
00:09:53,320 --> 00:09:54,040
Clean this.

120
00:09:56,500 --> 00:09:57,910
Still cleanin comments.

121
00:10:01,780 --> 00:10:06,770
OK, OK, so of sufficiently Klina comments, let's see what we have left.

122
00:10:07,540 --> 00:10:11,020
OK, so this is our main function.

123
00:10:11,020 --> 00:10:14,270
Our main started by calling this function in a hole in it.

124
00:10:14,710 --> 00:10:17,880
This means hardware obstruction.

125
00:10:18,130 --> 00:10:19,690
That's what will host for in it.

126
00:10:19,870 --> 00:10:22,900
And this initializes some hardware stuff.

127
00:10:23,230 --> 00:10:26,610
When you are using Cuba, it's always comes with a hole in it.

128
00:10:27,160 --> 00:10:32,120
We can implement the content of this function ourselves, but that's not the purpose of this course.

129
00:10:32,500 --> 00:10:39,370
So after hole in its hole in it would initialize what time I should be used for our delay function,

130
00:10:39,370 --> 00:10:47,290
for instance, because we can see how delay and gets the amount of delay that we pass as argument to

131
00:10:47,290 --> 00:10:48,970
that particular hole delay function.

132
00:10:49,210 --> 00:10:50,980
So HOLLIN it deals with that stuff.

133
00:10:50,980 --> 00:10:56,470
It would sort it out for us and then their system configured system clock config and this configures

134
00:10:56,470 --> 00:11:04,600
the system clock the clock for the the the main system clock as well as the clock for the various buses.

135
00:11:04,960 --> 00:11:13,300
You should know that our microcontroller has multiple buses and is from these buses that the various

136
00:11:13,300 --> 00:11:15,790
peripherals and modules Gadhia Clock.

137
00:11:16,210 --> 00:11:20,960
So you would have a situation where you have two peripherals with different clock.

138
00:11:21,250 --> 00:11:27,880
The reason why you can have two peripherals and they have different clocks is because they're cerebus

139
00:11:27,880 --> 00:11:29,860
the the on separate buses.

140
00:11:30,820 --> 00:11:36,320
And even apart from that, we can apply a preschooler to each peripheral to reduce its clock.

141
00:11:36,760 --> 00:11:44,080
So anyway, the system clock on fiqh allows us to configure the systems clock as well as the clock for

142
00:11:44,080 --> 00:11:46,560
the various buses and the microcontroller.

143
00:11:46,810 --> 00:11:47,860
And we shall see those.

144
00:11:48,040 --> 00:11:49,660
We shall talk about them when we need them.

145
00:11:49,880 --> 00:11:55,030
So we have APV, one bus, EPB to bus each bus, things like this.

146
00:11:55,030 --> 00:11:57,370
And you can find these names in the comments here.

147
00:11:57,670 --> 00:11:59,550
But that is not the purpose here.

148
00:11:59,740 --> 00:12:01,420
So that's what system config does.

149
00:12:01,450 --> 00:12:02,950
That's what it's done here.

150
00:12:03,220 --> 00:12:06,580
So this system config function has been included here for us.

151
00:12:07,860 --> 00:12:11,160
Does a system config, as you can see over here, right?

152
00:12:11,370 --> 00:12:13,020
There isn't much with this.

153
00:12:13,350 --> 00:12:21,870
So then then we have to use that to you, its function, because we enabled the user to then this was

154
00:12:21,870 --> 00:12:25,150
included and we can find the implementation of this function down here.

155
00:12:25,500 --> 00:12:33,300
So basically, user two was configured to run out one hundred and one hundred and fifteen thousand two

156
00:12:33,300 --> 00:12:37,320
hundred point rates than other configurations were included.

157
00:12:37,500 --> 00:12:40,730
OK, then we have a what are you in it?

158
00:12:40,740 --> 00:12:43,650
And inside this GPL you in it which is the.

159
00:12:44,550 --> 00:12:49,830
The third function or yeah, the third function called here we simply enabling access.

160
00:12:51,240 --> 00:13:00,100
To the sports, you put a remember GPA, you e is where are you at Pinsker are connected to Impey three.

161
00:13:00,360 --> 00:13:05,370
So in order to be able to use them, in order to be able to use that, you are to clock access needs

162
00:13:05,370 --> 00:13:08,790
to be enabled to these pins and thus the cingulate.

163
00:13:09,270 --> 00:13:10,290
That's the thing our.

164
00:13:12,900 --> 00:13:19,940
And interesting for us, and then after that, we have our always canno initialise, and this is Colonel

165
00:13:19,960 --> 00:13:22,180
Initialise comes with.

166
00:13:23,340 --> 00:13:31,170
Simms's artus remember free artosis separate from Simms's Artus free Archos as a real time canno built

167
00:13:31,170 --> 00:13:40,160
by one company, Simms's artists, is a standardization that is applied on top of free artists to make

168
00:13:40,170 --> 00:13:44,910
the free Arktos functions look similar to other Arktos functions.

169
00:13:46,170 --> 00:13:51,870
What I mean by this is with this way of writing, the function always threaten you.

170
00:13:52,940 --> 00:14:00,320
If I'm using a different artists such as call artists, I'll write exactly the same thing and I'll be

171
00:14:00,320 --> 00:14:04,970
able to create a new a new thread dysfunction, always thread new.

172
00:14:05,480 --> 00:14:13,220
If I wanted to create a new thread in a separate Real-Time operating system like Call Art, which is

173
00:14:13,220 --> 00:14:15,590
another popular operating system out there.

174
00:14:15,980 --> 00:14:23,840
If I write this function, it would work the same way as if I write it using free artists.

175
00:14:23,990 --> 00:14:28,640
And what allows this standardization is Simms's artists.

176
00:14:29,210 --> 00:14:32,270
So Simms's Artosis a wrapper around.

177
00:14:33,460 --> 00:14:36,590
And already exist in real time operating system.

178
00:14:37,120 --> 00:14:42,700
So in these initial lessons, like I said, we're not going to be working with are just going to use

179
00:14:42,700 --> 00:14:45,100
the actual functions of three artists.

180
00:14:45,280 --> 00:14:50,220
And then later on we shall see how to use the Simms's ARTUS APIs.

181
00:14:51,580 --> 00:14:57,090
So what I'm going to do is I'm going to delete the out stuff or delete this year.

182
00:14:58,000 --> 00:15:04,360
And yeah, so now we simply have our hardware initialization hole in its system.

183
00:15:04,360 --> 00:15:05,980
Clock Jhpiego.

184
00:15:06,850 --> 00:15:09,010
You oughton it and then let's see.

185
00:15:10,170 --> 00:15:17,310
So when we in Cuba, we saw that there was a difficult task that was there and we couldn't delete it.

186
00:15:17,340 --> 00:15:18,780
So this is the difficult task.

187
00:15:19,050 --> 00:15:22,870
Remember, a task as a task is like a main function.

188
00:15:23,640 --> 00:15:26,610
So you see it has an infinite loop here.

189
00:15:28,420 --> 00:15:32,560
Whenever you see an infinite loop inside a function, that function is is a task.

190
00:15:33,370 --> 00:15:34,780
OK, so I'll delete this.

191
00:15:35,980 --> 00:15:37,510
We don't need this as well.

192
00:15:37,540 --> 00:15:41,490
So this is our time because remember, we select a time we want to be out.

193
00:15:41,490 --> 00:15:44,830
What time is this code was generated because of that?

194
00:15:45,550 --> 00:15:53,350
So this is a short overview of what we collected because we've deleted this task, remove its prototype

195
00:15:53,350 --> 00:15:53,890
from here.

196
00:15:55,370 --> 00:15:59,900
So what we have left is simply our hardware initialization we initialised.

197
00:16:01,160 --> 00:16:06,920
Just the peripherals we use and there is no art or stuff here, no, there's nothing to do with our

198
00:16:07,140 --> 00:16:14,540
here, we've included Simms's or storage and then there's me each and inside me and what we may have

199
00:16:14,540 --> 00:16:16,240
some of our favorite artists.

200
00:16:16,820 --> 00:16:18,710
Let's go inside me agency.

201
00:16:18,860 --> 00:16:20,660
I'll double click this right click.

202
00:16:21,760 --> 00:16:24,780
I'll say open declaration, OK?

203
00:16:24,950 --> 00:16:33,580
So does this mean that each inside mean that each we have estimated to hold each OK, so our free Arktos

204
00:16:33,580 --> 00:16:35,530
head of ours will be included here.

205
00:16:36,620 --> 00:16:40,790
Then we can click here, Simms's, who is.

206
00:16:41,870 --> 00:16:43,760
Knowledge open declaration here.

207
00:16:46,910 --> 00:16:47,520
Let's see.

208
00:16:47,590 --> 00:16:55,100
OK, so this in here, we have free after storage, so our free artosis included here together with

209
00:16:55,100 --> 00:17:03,680
certain definitions of the CMC Sports Apeace, OK, so free actors have all this included for us.

210
00:17:05,500 --> 00:17:05,860
Right.

211
00:17:05,890 --> 00:17:08,350
So let's build and see we've cleaned.

212
00:17:09,750 --> 00:17:11,550
Let's do it and see what we have.

213
00:17:14,180 --> 00:17:14,900
It's building.

214
00:17:19,740 --> 00:17:22,380
So it's built successfully writes.

215
00:17:24,560 --> 00:17:29,670
OK, so we brought you out here to be used as a tool.

216
00:17:29,870 --> 00:17:38,270
So we're going to be we're going to be using the you ought to print various debug information, as well

217
00:17:38,270 --> 00:17:41,030
as feedback that we require from our various tasks.

218
00:17:41,270 --> 00:17:47,660
To do this, we need to install a zero program on our computer to be able to receive or to display what

219
00:17:47,660 --> 00:17:52,330
is received from the popular ones, include terrorism or Real-Time.

220
00:17:52,340 --> 00:17:54,520
If you have any one of these, you can.

221
00:17:55,250 --> 00:17:55,760
You can.

222
00:17:56,860 --> 00:18:02,080
You can keep them without downloading a new one, but for those of you who do not have any serious program,

223
00:18:02,320 --> 00:18:03,900
we're going to download real time.

224
00:18:03,910 --> 00:18:05,710
So you simply open your browser.

225
00:18:07,440 --> 00:18:16,770
And then you're going to search real time over here like this, and then you can just click.

226
00:18:18,250 --> 00:18:19,750
You can click one of these links.

227
00:18:20,930 --> 00:18:23,450
I'll click this first one to see if we get it.

228
00:18:28,190 --> 00:18:28,880
It's open in.

229
00:18:30,540 --> 00:18:33,360
I've read this before, so I just click to accept you over here.

230
00:18:35,100 --> 00:18:38,150
And once this is done, click download over here.

231
00:18:40,150 --> 00:18:42,550
And it says your download will start shortly.

232
00:18:44,660 --> 00:18:49,550
And as you can see over here, it's finished downloading, so click over here to open it.

233
00:18:50,730 --> 00:18:55,740
I say, yes, I've installed this before, by the way, so I see next over here.

234
00:18:56,740 --> 00:18:57,250
Next.

235
00:18:58,410 --> 00:18:58,980
Next.

236
00:19:00,090 --> 00:19:02,700
There needs to this is a very straightforward was it.

237
00:19:03,600 --> 00:19:10,830
OK, so Registar Real-Time Automation Server, I don't want to do any of this, um, I don't want to

238
00:19:10,830 --> 00:19:13,620
open read me, so just finish after this.

239
00:19:14,360 --> 00:19:16,540
OK, so we have real time.

240
00:19:17,340 --> 00:19:17,720
Right.

241
00:19:17,970 --> 00:19:19,950
So once that is done, there's one other thing.

242
00:19:20,100 --> 00:19:23,460
OK, let's let's check before we do this other thing.

243
00:19:24,120 --> 00:19:24,690
Um.

244
00:19:27,450 --> 00:19:35,220
So you are on itself, doesn't work with printf in order to use the printf, we have to retarget it.

245
00:19:35,730 --> 00:19:44,240
So we have to implement the Pusha function, which char or put character is a function in C language.

246
00:19:44,460 --> 00:19:48,950
So we have to perform our own implementation of it in order to be able to use printf.

247
00:19:49,260 --> 00:19:58,500
So we have to write and underscore, underscore, io underscore, underscore, put H.E.R over here and

248
00:19:58,500 --> 00:20:01,800
then this would take into a segment.

249
00:20:03,270 --> 00:20:09,180
OK, so there's the function Prototyp so down here we can implement the function.

250
00:20:09,180 --> 00:20:09,930
I'll copy this.

251
00:20:10,860 --> 00:20:14,640
And I implement a function over here, OK?

252
00:20:16,560 --> 00:20:21,130
What we want to do is call the the you are to transmit function.

253
00:20:21,720 --> 00:20:30,870
So if we were if we wanted to transmit a character, we would do whole underscore you at underscore

254
00:20:31,470 --> 00:20:32,160
transmit.

255
00:20:35,500 --> 00:20:42,200
And the first document of this is the address of our Ewart's instance one, this one here.

256
00:20:43,060 --> 00:20:46,270
So this the first document where we.

257
00:20:48,840 --> 00:20:52,590
Piece this over here and then we put the numbers on sign here like this.

258
00:20:54,340 --> 00:20:57,430
So if you want to know more about this function you just highlighted.

259
00:20:59,220 --> 00:21:05,910
We can highlight this and then we'll be told more about it, since an amount of data in blocking mode

260
00:21:06,180 --> 00:21:08,210
when you watch is not disabled.

261
00:21:08,580 --> 00:21:11,430
So it tells us from one parent to parent to me.

262
00:21:13,120 --> 00:21:15,580
There is the first problem here says.

263
00:21:16,690 --> 00:21:22,810
Point out to you what type of structure and then the second paragraph is pointed to the data above the

264
00:21:22,810 --> 00:21:28,510
third parameter, which is the third parameter or argument is the amount of data element.

265
00:21:28,840 --> 00:21:32,170
And then the last argument or parameter is the time out.

266
00:21:32,860 --> 00:21:33,210
Right.

267
00:21:33,640 --> 00:21:34,030
So.

268
00:21:35,250 --> 00:21:41,030
Ampersand right here and then next we.

269
00:21:43,310 --> 00:21:46,670
We see you in St..

270
00:21:48,760 --> 00:21:51,760
We typecast this argument here to you in eight.

271
00:21:53,120 --> 00:22:01,070
And I to point up the name of the argument to see besides this one and then time out, I'm going to

272
00:22:01,070 --> 00:22:02,720
see your over here.

273
00:22:03,200 --> 00:22:06,110
I'm going to see if if like this.

274
00:22:07,570 --> 00:22:09,010
OK, so now.

275
00:22:11,020 --> 00:22:15,640
Let's see, I don't want to use Pranav and I just want to transmit a character, I could have done this.

276
00:22:18,970 --> 00:22:22,350
I could have just pasted this in here and then I'll see, OK?

277
00:22:24,170 --> 00:22:34,040
Oh, see, message, I sent message messages, an array of size one and message has each in its.

278
00:22:35,950 --> 00:22:43,540
And over here, I'll pass messages, arguments, I could see this, OK, and then let's build I'll build

279
00:22:43,540 --> 00:22:43,840
this.

280
00:22:44,870 --> 00:22:48,890
But to show you what we would have to do without doing this.

281
00:22:50,140 --> 00:22:50,710
Let's see.

282
00:22:53,650 --> 00:22:55,810
There's an issue here, control reaches.

283
00:22:56,760 --> 00:23:02,520
And then over here, it says, OK, so we forgot to return.

284
00:23:02,550 --> 00:23:04,340
Remember, this has to return on end.

285
00:23:04,500 --> 00:23:07,920
So do the implementation of gutshot is first.

286
00:23:08,280 --> 00:23:13,860
Do you transmit the documents and then to return the documents?

287
00:23:14,850 --> 00:23:18,050
OK, so I'll do it again.

288
00:23:21,970 --> 00:23:24,880
OK, this is we've got to warning's.

289
00:23:31,170 --> 00:23:37,710
Right over here, we just put the brackets around the scoreboard, so we click to build.

290
00:23:39,140 --> 00:23:41,090
And it's looking good what we want to do.

291
00:23:41,300 --> 00:23:47,390
I want to comment on this implementation that we've just done, so you just hold on control and then

292
00:23:47,390 --> 00:23:55,910
you press the button or you can highlight it and come to source and then select comment over here.

293
00:23:58,000 --> 00:23:59,620
Block comment or Tokyo, your comments.

294
00:23:59,810 --> 00:24:01,990
OK, so let's see.

295
00:24:03,060 --> 00:24:09,880
We don't have anything to do with posture at the moment, and we've just initialized the US.

296
00:24:11,340 --> 00:24:12,180
Click here to build.

297
00:24:13,800 --> 00:24:21,580
And we are transmitting your transmitting this, OK, so to flush onto our board, you have to click

298
00:24:21,580 --> 00:24:23,550
here, click over here, debark.

299
00:24:27,140 --> 00:24:29,090
And then I'll say, OK.

300
00:24:34,290 --> 00:24:37,860
It's opening in the northeast, which.

301
00:24:39,980 --> 00:24:41,690
And then I'm going to open real time.

302
00:24:51,610 --> 00:24:52,220
Here we are.

303
00:24:52,820 --> 00:25:00,370
So come on the porch over here, then I'll select the port, the port for my borders, Port 16, I select

304
00:25:00,370 --> 00:25:01,210
this over here.

305
00:25:01,630 --> 00:25:06,460
And then the boat, as we saw, is one one five two zero zero.

306
00:25:07,400 --> 00:25:14,960
So come over here then, once all of this is done or click open ports, OK, and then I'm going to click

307
00:25:15,200 --> 00:25:18,560
to at this stage, our program is frozen.

308
00:25:18,830 --> 00:25:23,810
Whenever you come to the debug view the program, you or your family would restart and then it will

309
00:25:23,810 --> 00:25:24,380
be frozen.

310
00:25:24,380 --> 00:25:26,780
You have to click play to let it play.

311
00:25:27,050 --> 00:25:32,690
So I click play over here and I can see we are transmitting our h h h h h ok.

312
00:25:34,140 --> 00:25:34,620
Stop.

313
00:25:35,640 --> 00:25:36,100
Right.

314
00:25:36,390 --> 00:25:39,730
So then the question is, what if we want to transmit a sentence?

315
00:25:39,750 --> 00:25:44,420
Are we going to implement character by character?

316
00:25:45,030 --> 00:25:47,340
Or maybe we keep this sentence in a buffer?

317
00:25:47,340 --> 00:25:52,710
We can keep the sentence in a buffer and then just make sure the size is the size of the buffer and

318
00:25:52,710 --> 00:25:53,910
we'll be able to transmit it.

319
00:25:54,390 --> 00:26:01,310
But a more effective way is to use our printf, which we are used to from C language.

320
00:26:01,560 --> 00:26:03,600
So I'm going to uncommented this.

321
00:26:04,110 --> 00:26:07,390
I'm going to delete this, then delete this as well.

322
00:26:07,440 --> 00:26:08,580
This was just a test.

323
00:26:09,000 --> 00:26:12,750
And then over here or Cuccia, I'm going to uncommented as well.

324
00:26:13,620 --> 00:26:18,090
OK, so once we've done this now, I'll come over here.

325
00:26:20,130 --> 00:26:23,400
Right, print of a siff, I mean, see language.

326
00:26:26,760 --> 00:26:33,160
Hello from SDM, then two, and then I'll see you lying carriage return over here and then I'll put

327
00:26:33,160 --> 00:26:36,000
this over here, click over here to build.

328
00:26:39,360 --> 00:26:41,010
So we've got a warning.

329
00:26:42,730 --> 00:26:49,140
OK, the reason we would have a warning is in order to use Pranav, if you have to include Witheridge,

330
00:26:49,540 --> 00:26:57,410
so I'll come over here and see include SDD by the ridge.

331
00:26:59,060 --> 00:27:01,010
OK, click over here to build.

332
00:27:04,030 --> 00:27:05,300
No, no warning.

333
00:27:06,010 --> 00:27:08,080
OK, click debug.

334
00:27:13,850 --> 00:27:14,360
Switch.

335
00:27:19,310 --> 00:27:23,540
OK, and then I'll click play, then I'm going to go to real team.

336
00:27:24,790 --> 00:27:25,730
Going to clear this.

337
00:27:27,720 --> 00:27:29,520
Yes, you can put.

338
00:27:35,030 --> 00:27:37,190
Nothing is showing us stop this.

339
00:27:41,310 --> 00:27:44,130
So let's inspect our targets code again.

340
00:27:44,640 --> 00:27:48,300
This is the prototype and the implementation.

341
00:27:51,730 --> 00:27:58,210
OK, so over here, it's supposed to be under school on the school aisle and then a single underscore

342
00:27:58,240 --> 00:28:05,170
before picture to underscore underscored by a single on the school nova here.

343
00:28:05,830 --> 00:28:09,250
How transmit this over here, C.H..

344
00:28:10,240 --> 00:28:11,100
We've got a pass.

345
00:28:11,110 --> 00:28:15,250
It's us, C.H. Ambersons, over here.

346
00:28:15,500 --> 00:28:19,300
OK, so this has to be exactly the same, just a single mistake.

347
00:28:19,300 --> 00:28:24,580
And to make it work, right, because it exists somewhere, you are trying to provide your own implementation

348
00:28:24,820 --> 00:28:26,500
to replace what already exists.

349
00:28:26,920 --> 00:28:33,990
OK, so this is just to show us how to use print if we still got into the ARTUS bit.

350
00:28:34,000 --> 00:28:35,410
So if.

351
00:28:35,650 --> 00:28:36,040
Yeah.

352
00:28:37,150 --> 00:28:38,140
So just bear with me.

353
00:28:38,140 --> 00:28:41,560
I would say I could just drop this quote and then we move on.

354
00:28:41,560 --> 00:28:48,310
But I want us to figure this together so it's both no error, no warning applicable I had about.

355
00:28:53,020 --> 00:28:53,860
And then switch.

356
00:28:57,700 --> 00:29:03,970
And then, um, let's bring real time side by side is over here, I'll click to run.

357
00:29:04,920 --> 00:29:05,910
Let's be real to.

358
00:29:11,910 --> 00:29:12,500
OK.

359
00:29:13,580 --> 00:29:21,500
Barge trigger Honda, we saw some data hello from ASTM 32, so I'm going to restart real time, OK?

360
00:29:21,680 --> 00:29:22,680
I'm going to open it again.

361
00:29:24,250 --> 00:29:29,350
So I've just opened real time, I come here about rates.

362
00:29:30,640 --> 00:29:34,150
This one one five two zero zero, a drop down over here.

363
00:29:35,190 --> 00:29:43,380
This is the port for my board and then I'll open over here, as you can see, we have hello from ASTM

364
00:29:43,620 --> 00:29:44,910
to this ayliffe.

365
00:29:44,930 --> 00:29:48,820
S.R. is for our line feed carriage return.

366
00:29:49,380 --> 00:29:54,150
OK, so we have a data being transmitted so we can be type in.

367
00:29:55,340 --> 00:30:02,480
Deba from we can be type in debug information from task number one, debug from task number two and

368
00:30:02,480 --> 00:30:08,490
things like that, and this would give us an idea of how the artosis working.

369
00:30:09,040 --> 00:30:15,230
OK, so this order is for this one configuration configuration, our system and the next lesson we shall

370
00:30:15,230 --> 00:30:17,730
get into the task creation itself.

371
00:30:17,990 --> 00:30:20,330
So this order is and I'll see you in the next lesson.

372
00:30:20,340 --> 00:30:21,080
Have a nice day.
