What's up
I am back.
Today I learned how to read a library cache
Also, I learned what a register and a port are.
A port is a group of registers, and a register is a series of bits containing information for the board.
Now I can read a0b-STM32F401-svd-.ads files
It will help me write code.
But I am curious,
STM32F401 and STM32F411(mine) are on the same production line.
They have the same pinout.
However, can I use the STM32F401 library for Ada for the STM32F411?
Please let me know about this if you have similar experiences.
Thank you
with A0B.STM32F401.SVD.GPIO; use A0B.STM32F401.SVD.GPIO;
--
procedure Blackpillprc is
begin
GPIOC_Periph.MODER.Arr(13) := 2#01#;
loop
GPIOC_Periph.ODR.ODR.Arr (13) := False; -- LED ON
for I in 1..100000 loop null; end loop;
GPIOC_Periph.ODR.ODR.Arr (13) := True; -- LED OFF
for I in 1..100000 loop null; end loop; --
end loop;
end Blackpillprc;
This is my first code
Top comments (0)