Doubt regarding drivers implementation

Discussions and support about ChibiOS/HAL, the MCU Hardware Abstraction Layer.
0x3333
Posts: 57
Joined: Thu Mar 07, 2019 10:19 pm
Has thanked: 7 times
Been thanked: 6 times

Re: Doubt regarding drivers implementation

Post by 0x3333 »

Giovanni,

Do you consider adding the Software Serial driver to ChibiOS? Currently, I'm maintaining a fork in GitHub(https://github.com/0x3333/chibios_svn_m ... /README.md) but would be nice to have this driver upstreamed.

I'm using this driver for some time now and it works great.

Thanks.
User avatar
Giovanni
Site Admin
Posts: 14893
Joined: Wed May 27, 2009 8:48 am
Has thanked: 1202 times
Been thanked: 997 times

Re: Doubt regarding drivers implementation

Post by Giovanni »

Hi,

It looks "compliant" enough, having a more standard demo with GPT as could source would be a bonus.

Have you tested limits? what is a reasonable upper speed limit?

Another topic, do you need to have it under your copyright? if so then it should go in the community repository, I need to keep a copyright clean code base, I do re-licensing for the commercial version. Keeping the name as credits/author is not a problem.

Giovanni
0x3333
Posts: 57
Joined: Thu Mar 07, 2019 10:19 pm
Has thanked: 7 times
Been thanked: 6 times

Re: Doubt regarding drivers implementation

Post by 0x3333 »

I have some problems calculating the tick using GPT(I couldn't calculate the multiplier correctly), but I did make it work after some struggling, I'll post an example, so it works with all compatible boards/cpus in ChibiOS.

I tested up to 115200, but the CPU got pretty busy, maybe because the multiplier was at 4, reducing to 2 would save a lot of CPU time. I'm working with 9600 with 6 instances, works great.
0x3333
Posts: 57
Joined: Thu Mar 07, 2019 10:19 pm
Has thanked: 7 times
Been thanked: 6 times

Re: Doubt regarding drivers implementation

Post by 0x3333 »

No problem regarding the copyright, I'll change in my repo.

Edit 1: Done, changed the copyright in my repo.
Post Reply