Page 1 of 1
I2S Driver for 2.6.3 (STMF4-Discovery)
Posted: Thu Mar 27, 2014 4:54 am
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?
Re: I2S Driver for 2.6.3 (STMF4-Discovery)
Posted: Thu Mar 27, 2014 9:27 am
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
Re: I2S Driver for 2.6.3 (STMF4-Discovery)
Posted: Thu Mar 27, 2014 4:17 pm
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?
Re: I2S Driver for 2.6.3 (STMF4-Discovery)
Posted: Thu Mar 27, 2014 4:26 pm
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
Re: I2S Driver for 2.6.3 (STMF4-Discovery)
Posted: Thu Mar 27, 2014 4:28 pm
by wang701
Thanks!
Re: I2S Driver for 2.6.3 (STMF4-Discovery)
Posted: Thu Mar 27, 2014 4:38 pm
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?
Re: I2S Driver for 2.6.3 (STMF4-Discovery)
Posted: Thu Mar 27, 2014 4:46 pm
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
Re: I2S Driver for 2.6.3 (STMF4-Discovery)
Posted: Thu Mar 27, 2014 7:44 pm
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?