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

Postby 0x3333 » Sun Oct 13, 2019 8:28 pm

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: 14455
Joined: Wed May 27, 2009 8:48 am
Location: Salerno, Italy
Has thanked: 1076 times
Been thanked: 922 times
Contact:

Re: Doubt regarding drivers implementation

Postby Giovanni » Sun Oct 13, 2019 8:52 pm

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

Postby 0x3333 » Sun Oct 13, 2019 9:00 pm

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

Postby 0x3333 » Thu Oct 17, 2019 8:48 pm

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

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


Return to “ChibiOS/HAL”

Who is online

Users browsing this forum: No registered users and 12 guests