What is the difference between hal modules v1 and v2 version?

This forum is dedicated to feedback, discussions about ongoing or future developments, ideas and suggestions regarding the ChibiOS projects are welcome. This forum is NOT for support.
tsichevski
Posts: 35
Joined: Fri Feb 09, 2018 12:44 am
Has thanked: 2 times
Been thanked: 5 times

What is the difference between hal modules v1 and v2 version?

Postby tsichevski » Fri Feb 09, 2018 12:53 am

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

User avatar
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?

Postby RoccoMarco » Fri Feb 09, 2018 9:14 am

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
Ciao,
RM

tsichevski
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?

Postby tsichevski » Fri Feb 09, 2018 9:44 am

Many thanks!
you have answered my question.


Return to “Development and Feedback”

Who is online

Users browsing this forum: No registered users and 18 guests