Hi all,
There are two versions of some hal modules, for example:
os/hal/ports/STM32/LLD/SPIv1
os/hal/ports/STM32/LLD/SPIv2
What is the difference?
If I start a new development, which version should I use?
Thanks,
Vladimir
What is the difference between hal modules v1 and v2 version?
-
- Posts: 35
- Joined: Fri Feb 09, 2018 12:44 am
- Has thanked: 2 times
- Been thanked: 5 times
- RoccoMarco
- Posts: 655
- Joined: Wed Apr 24, 2013 4:11 pm
- Location: Munich (Germany)
- Has thanked: 83 times
- Been thanked: 67 times
- Contact:
Re: What is the difference between hal modules v1 and v2 version?
Hello,
the difference is HW: each low level driver is designed for a specific HW cell. In case of STM32 if I remember well STM32F1, STM32F2 and STM32F4 has SPIv1, STM32F0, STM32F3 and STM32F7.
By the way chech the file platform.mk under
os\hal\ports\STM32\[name of the famili you are using]. There you can see which file is used. My suggestion is to use a default demo as template for your application.
Have fun
the difference is HW: each low level driver is designed for a specific HW cell. In case of STM32 if I remember well STM32F1, STM32F2 and STM32F4 has SPIv1, STM32F0, STM32F3 and STM32F7.
By the way chech the file platform.mk under
os\hal\ports\STM32\[name of the famili you are using]. There you can see which file is used. My suggestion is to use a default demo as template for your application.
Have fun
Ciao,
RM
RM
-
- Posts: 35
- Joined: Fri Feb 09, 2018 12:44 am
- Has thanked: 2 times
- Been thanked: 5 times
Re: What is the difference between hal modules v1 and v2 version?
Many thanks!
you have answered my question.
you have answered my question.
Return to “Development and Feedback”
Who is online
Users browsing this forum: No registered users and 18 guests