I2S Driver for 2.6.3 (STMF4-Discovery)

ChibiOS public support forum for topics related to the STMicroelectronics STM32 family of micro-controllers.

Moderator: RoccoMarco

Post Reply
wang701
Posts: 7
Joined: Wed Mar 19, 2014 8:19 pm

I2S Driver for 2.6.3 (STMF4-Discovery)

Post by wang701 »

I am currently using the stable 2.6.3 version but in os\hal\src folder, I see no i2s.c file.

Does that mean i2s is currently not fully implemented in 2.6.3? I've seen examples of i2s written in 2.5.1 and on github, on chibios's branch, kernel_3_dev, in os\hal\src folder, there is i2s driver written. Which version of i2s driver should I use?

If I do want to use them, should I just download the files, put them in the corresponding folder and then include them to my project folder?
User avatar
Giovanni
Site Admin
Posts: 14892
Joined: Wed May 27, 2009 8:48 am
Has thanked: 1202 times
Been thanked: 996 times

Re: I2S Driver for 2.6.3 (STMF4-Discovery)

Post by Giovanni »

Hi,

I2S is not supported in 2.6.x, an experimental driver has been contributed but it will not be merged in the 2.6.x branch.

In 3.0.0 there is already an I2S implementation but it will not be backported to 2.6.x.

Giovanni
wang701
Posts: 7
Joined: Wed Mar 19, 2014 8:19 pm

Re: I2S Driver for 2.6.3 (STMF4-Discovery)

Post by wang701 »

Where could I download the version 3.0.0? Is it branch kernel_3_dev on github?

On github, ChibiOS/RT's master branch has version 2.7.0 and it has i2s implementation. Which one should I choose?
User avatar
Giovanni
Site Admin
Posts: 14892
Joined: Wed May 27, 2009 8:48 am
Has thanked: 1202 times
Been thanked: 996 times

Re: I2S Driver for 2.6.3 (STMF4-Discovery)

Post by Giovanni »

2.7 will not be released, soon the new master will be 3.0.

Currently the 3.0 branch is kernel_3_dev.

Giovanni
wang701
Posts: 7
Joined: Wed Mar 19, 2014 8:19 pm

Re: I2S Driver for 2.6.3 (STMF4-Discovery)

Post by wang701 »

Thanks!
wang701
Posts: 7
Joined: Wed Mar 19, 2014 8:19 pm

Re: I2S Driver for 2.6.3 (STMF4-Discovery)

Post by wang701 »

Quick side question: after I download the files from the 3.0 branch, do I copy and replace the existing files in my 2.6.x to make it work? I guess there would be some nuances in function calls between versions so that my existing code in 2.6.x will cause a problem?
User avatar
Giovanni
Site Admin
Posts: 14892
Joined: Wed May 27, 2009 8:48 am
Has thanked: 1202 times
Been thanked: 996 times

Re: I2S Driver for 2.6.3 (STMF4-Discovery)

Post by Giovanni »

Soon there will be a 2.x->3.0 migration guide.

Make sure to use Makefiles and configuration files taken from 3.0, some function name changed but the functionalities are retained.

Giovanni
wang701
Posts: 7
Joined: Wed Mar 19, 2014 8:19 pm

Re: I2S Driver for 2.6.3 (STMF4-Discovery)

Post by wang701 »

Giovanni wrote:Soon there will be a 2.x->3.0 migration guide.


Do you know probably how soon will it be available? Maybe in a week or a month?
Post Reply