Page 3 of 3
Re: Interrupt support on PAL module
Posted: Wed Sep 21, 2011 5:51 pm
by Giovanni
Sounds good, you may post the files on the forum as attachments.
Giovanni
Re: Interrupt support on PAL module
Posted: Thu Sep 22, 2011 3:14 pm
by Florian
Attached you find the source and header of the ext LL driver for the SAM7.
Do you have any comments/critics about it?
Regards,
Florian
@edit: Deleted buggy files.
Re: Interrupt support on PAL module
Posted: Thu Sep 22, 2011 3:47 pm
by Giovanni
I will give it a try in the weekend, anyway, a test application should be added.
Giovanni
Re: Interrupt support on PAL module
Posted: Fri Sep 23, 2011 2:21 pm
by Florian
I found a few bugs in the interrupt handler and fixed them. So just forget the files above and use this ones please.
Regards,
Florian
Re: Interrupt support on PAL module
Posted: Sun Sep 25, 2011 3:46 pm
by Giovanni
Hi Florian.
The implementation looks correct except for some minor issues like the use of // for comments, that is C99 only.
Good idea to make two drivers, one for each port, I would just name them EXTD1 and EXTD2, it is the common naming convention. A simple test application would be useful, you may derive one from the STM32 EXT test application.
Giovanni
Re: Interrupt support on PAL module
Posted: Tue Sep 27, 2011 9:59 am
by tinito
Uh, I did the EXT driver some months ago, it is in some post here on the forum, sorry for seeing this thread too late!
It was not so far by what Giovanni did, that is a good news for me

(btw, i didn't implement wakeup IRQs)
Re: Interrupt support on PAL module
Posted: Tue Sep 27, 2011 10:09 am
by Giovanni
If it is very similar it is because I started from that then made changes (mainly names and few implementation details as you can see). Your driver was mostly correct, conceptually it is the same.
I renamed it to EXT in order to make it less STM32ish

Giovanni
Re: Interrupt support on PAL module
Posted: Tue Sep 27, 2011 10:48 am
by tinito
Happy to read this! And yes, I'm definitively too much STM32-biased
