You initially said this would be go ahead and first export then hardware for three to five export export
hardware, and this will be you being a bit right.
So the location where we have our project, this project and go forty four, I will finish, right?
Once you successfully exporting hardware platform, we go ahead to tools and then launch of it is a.
OK.
And here we have the workspace, which is selected by the vitesses project and disco quality.
Now this is our previous project that director will just be going to browse button and then we will
be choosing our project and the school.
Forty four.
So this is the director where we have I do not project great.
We go ahead and then first invoke and hide, right?
So we click on Create like on project.
They just name this as an e-mail.
The next hook, we click on browse button and they.
Project and fiscal forty four, where we have our excessive fight rate, so once we successfully invoke
the hardware excessive fight, we just click finish, right?
Now this will create a platform project with our high specification.
So one, our black home project is ready, just proceed to build and platform project, right, so press
control be to start a process of building a project.
So once Billy successful, we go ahead, select the Black Phone project, right click new and then we
create an application project director.
We will be using e-mail, which is the platform project that we provide.
And we named this as the email on the school system.
Right click next and then select the standalone on the seven and the Halloway campaign, right?
So once we have our template, we just go to the BSP, find dates automatically, as you add an application
project, you have your EMI open over here, OK, and that consist of and will support package, right?
So this will highlight the driver that you need to utilize for an EMI, right?
So if you go ahead for.
For the GPIO zero, right, so this is an extra port that is added, if you remember in our block design,
if you go to.
The block is a right, so they stop what we decided when we and my list and it right.
And if you go to a White House aide and explore a bootable package.
So P.S. seven dubious the right tool for this the recommended driver is against UPI appears right.
So we go to the suit, stepped in and had to wait or see.
Right?
So let us include the mandatory tribal fight, say so first one is for a GPIO bias.
We need to include next year's storage rate, so this allows us to get an access to all the apps that
will interact with our e-mail right then we need to also include expert Amidu's.
Darn right, someone's this two rival, Pfizer added.
We proceed to Jupiter.
But no, then that process of initialization is all going to will be following the same process to perform
an initialization.
Right?
So we have a two structure.
First one is a conflict structure.
And then this will be declaring as the pointer, right, so that it doesn't even this as e-mail conflict,
then we required an instant structure.
Right.
So this will be our instant structure.
OK, then we declared one.
GPI init function, OK, that could be used to initialize our thing, right?
Again, if we go to LP GPI Ops, so we have to look up config where we need to parse the device.
So we just copy this look up on fake, OK, and this returns the config structure.
So I can't fix structures.
E-mail on.
OK, and this will be quest to look up config where we need to pass the device.
So to find out the device had you go to an X parameter dotage and look for gubio.
So here we have our GPI seat, right?
We'll just be copying this device, right?
So we go ahead and we add the GPIO and the school 028 site.
Once this is done now, we could go the CFD initialize.
And this required the argument, right, so first one is an instance structure, then we have a conflict
structure and a peace address.
And this returns the details of initialization.
So this basically returns s32, right?
So we will be declaring a variable of study to date.
Sue S32, OK.
And this will be during the status of initialization, this will be a quiz to see if she initialize
the first argument is the pointer to an instance structure, so we'll just be adding an ampersand.
Then we have e-mail, which is our.
Instead, structure, then we have e-mail conflict, which is our conflict structure, and we could
access the base address from e-mail conflict and then be set straight.
So this way this has step that we need to perform to initialize up fitted right.
Then we will just be verifying where the status is equals to access 60 success.
If that is the case, we'll just be mentioning.
OK.
Device in it, successful.
OK.
As we could just mention.
Device in it, free rate.
So this complete the process of initialization will be calling this GPI only done in our main application,
right, so unique platform will perform an initialization step for our work.
This allow us to direct easily with a cancer rate without performing any initialization and then we
are calling upon it.
So this will also perform an initialization of what EMI verify.
Right now, we need to correctly said today we configuring EMI says that we work with an entity.
OK, so this represent an output.
But now we go ahead and we work around the defense.
So we have an API to work with the pin to set the direction.
We have a sedation pin API where we need to pass an instance, such a pin number and the radiation rate,
so we go ahead.
And then we will be.
The instant structure for us is the email, then the pin number to remember a Meyiwa number from zero
to 53.
So first year, my open will be having a number of 50 for you want to set it to work as output.
So we just need to see it right.
And then we copy a Disney API with no since we have a plan to work on for a week.
We need to set the direction for all pain rates that have been taken and the pin number for sick and
elderly will be 55.
Then we have 56 and last will have in numbers 50 set right.
So this will automatically set the all the EMI open to work as an output.
So one this system, we will be trying to generate the.
Blinking effect on all the foolery, right, so how we do that is why we.
OK and do right the value to analogy we have right beneath you, right?
Well, this required and it's just structure, a pin number and the data that we want direct, right?
So you will be going ahead.
And we already know that the ancient structure is EMU.
The pin number for for Australians is 54.
Let it just assume that first we ride one to all the right, so we just need to change the pin number
before fifty five, fifty six and fifty seven, right?
Then we wait for let's assume you second, right?
And then we again copy this all right, brain function.
But now we will be writing the value us.
See, right.
So here we will be changing their data from one to see again, we wait for two second rate.
So one last thing as we complete our goal is to make sure that we enable and them so this we need to
do whenever we have a tri state constraint.
So if you also block design, right?
So if you click on this, you underscore zero, you could actually see we could use this as an input
and output.
Then we have a price, right?
So whenever you find the pin having such kind of behavior?
OK, then in that case, you also need to enable rates.
So that's that is how you will be reading or writing to operate.
So in this case, we now know that our pin is dry street, right?
We need to enable and then only whatever value that we seem to have will be getting on it right.
So to do that, we have a function which I refer to as the GPO you set out to.
Right.
So this allows us to we just explore the functionality of it, right?
So this allows us to enable output of the specific thing, right?
So valid values are zero for disabling and I'll put in it and one for enabling and I'll write.
So we need to enable an output, so we need to add one as the argument.
So we just copy this function.
We go ahead to our mean program.
OK, and here.
The first argument that disfunction have is to instill structure, then the pin number, right, so
54, is that the number?
Then we need to enable an output, so we need to add one to it, right?
Similarly, we copy this and then we do this for the rest of the panel.
All right.
So we have fifty four, fifty five, fifty six and fifty seven.
We enable an output for all the bits.
OK, so this you need to do whenever you find out the pen, have a try st Typekit, right?
So as soon as you find out that the pin that you are utilizing in a blocked design consist of a tri
stream driver, OK, you need to enable an output and then only you able to read or write the data from
back to once this is done.
Now we are ready to write the letter to the LC, so let me just see our code and build an entire application
project to just press control.
This will automatically initiate the process of building our project.
And once Bill is finished, we select our application project, right click Debug s launch on Hard,
Right, so this will automatically program our SPG.
Nuanced programming is done, we go ahead and we connect to our serial terminal to the respect to come
great, so we click on this plus button.
Then we choose cornflour and one one five two zero zero as.
Great.
Now only thing that you need to do to execute an application is to click on this resume.
But the right could clearly see we have device and it's successful right now.
And if you observe the eyelids, you could actually see a blinking effect at an interval of about two
seconds.