Hi,
i just spent a little time to test the driver. I additionally inserted the errorhandling ststus to the driver (that's why i included the highlevel driver files).
I hope you enjoy it.
Florian
P.S. some more drivers will follow in the next weeks.
[TODO] AT91SAM7 CAN Driver
Re: AT91SAM7 CAN Driver
Thank you very much for sharing your work! Would you like to include your driver into the community repository?
~ Tectu
~ Tectu
Re: AT91SAM7 CAN Driver
Hi,
i hope the driver will find it's way to one of the next chibios versions
Greetings
Florian
i hope the driver will find it's way to one of the next chibios versions
Greetings
Florian
- Giovanni
- Site Admin
- Posts: 14461
- Joined: Wed May 27, 2009 8:48 am
- Location: Salerno, Italy
- Has thanked: 1077 times
- Been thanked: 922 times
- Contact:
Re: AT91SAM7 CAN Driver
Hi,
Some new drivers have been added to the AT91SAM7 platform, did you see them? better to not duplicate effort your CAN driver will be added too. The platform looks quite complete now, almost at the same level of the STM32.
I am going to appoint a new maintainer for this platform and open a dedicated forum, of course it would be possible to have two maintainers if you are interested too.
The idea is to make each platform have its own maintainers, more info will follow during next weeks.
Giovanni
Some new drivers have been added to the AT91SAM7 platform, did you see them? better to not duplicate effort your CAN driver will be added too. The platform looks quite complete now, almost at the same level of the STM32.
I am going to appoint a new maintainer for this platform and open a dedicated forum, of course it would be possible to have two maintainers if you are interested too.
The idea is to make each platform have its own maintainers, more info will follow during next weeks.
Giovanni
- Giovanni
- Site Admin
- Posts: 14461
- Joined: Wed May 27, 2009 8:48 am
- Location: Salerno, Italy
- Has thanked: 1077 times
- Been thanked: 922 times
- Contact:
Re: [TODO] AT91SAM7 CAN Driver
Hi,
I'm really sorry in a small modification before I sent you the driver i made a little/big mistake. In Line 525 (can_lld_transmit(...)) of can_lld.c (old: canp->base->CAN_IER = CAN_MB(CAN_TxMB0); ) must be for sure:
because CAN_MB(CAN_TxMB0) gives the mailbox number (0...7) but it needs to be 0b0100 for mailbox 3 (not 0b0011).
Stupid me! SORRY!
Florian
I'm really sorry in a small modification before I sent you the driver i made a little/big mistake. In Line 525 (can_lld_transmit(...)) of can_lld.c (old: canp->base->CAN_IER = CAN_MB(CAN_TxMB0); ) must be for sure:
Code: Select all
canp->base->CAN_IER = 1 << CAN_MB(CAN_TxMB0);
because CAN_MB(CAN_TxMB0) gives the mailbox number (0...7) but it needs to be 0b0100 for mailbox 3 (not 0b0011).
Stupid me! SORRY!
Florian
Re: [TODO] AT91SAM7 CAN Driver
Hi,
I'm wondering if the (AT91SAM7) CAN Driver will be integrated in the next version of ChibiOS. Can I somehow support that?
Regards,
Florian
I'm wondering if the (AT91SAM7) CAN Driver will be integrated in the next version of ChibiOS. Can I somehow support that?
Regards,
Florian
- Giovanni
- Site Admin
- Posts: 14461
- Joined: Wed May 27, 2009 8:48 am
- Location: Salerno, Italy
- Has thanked: 1077 times
- Been thanked: 922 times
- Contact:
Re: [TODO] AT91SAM7 CAN Driver
Hi Florian,
The maintainer of this area hasn't been very active of late, would you be interested in help maintaining this port and integrate the driver yourself?
Giovanni
The maintainer of this area hasn't been very active of late, would you be interested in help maintaining this port and integrate the driver yourself?
Giovanni
Re: [TODO] AT91SAM7 CAN Driver
Hi,
If you allow I'll integrate the driver my way and I try to help maintainining as much as possible.
I'd need some tutorial for that.
Regards,
Florian
If you allow I'll integrate the driver my way and I try to help maintainining as much as possible.
I'd need some tutorial for that.
Regards,
Florian
- Giovanni
- Site Admin
- Posts: 14461
- Joined: Wed May 27, 2009 8:48 am
- Location: Salerno, Italy
- Has thanked: 1077 times
- Been thanked: 922 times
- Contact:
Re: [TODO] AT91SAM7 CAN Driver
Hi,
You need a sourceforge account , I will enable it to access the repository.
Helping maintaining means keeping the code and demos in release-able order, on this platform there isn't really much to do because it is very static. Probably I will not even port it over to ChibiOS 3.0 if there isn't a clear demand for it.
Giovanni
You need a sourceforge account , I will enable it to access the repository.
Helping maintaining means keeping the code and demos in release-able order, on this platform there isn't really much to do because it is very static. Probably I will not even port it over to ChibiOS 3.0 if there isn't a clear demand for it.
Giovanni
Who is online
Users browsing this forum: No registered users and 1 guest