Sounds good, you may post the files on the forum as attachments.
Giovanni
Interrupt support on PAL module
- Giovanni
- Site Admin
- Posts: 14895
- Joined: Wed May 27, 2009 8:48 am
- Has thanked: 1202 times
- Been thanked: 997 times
Re: Interrupt support on PAL module
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.
Do you have any comments/critics about it?
Regards,
Florian
@edit: Deleted buggy files.
Last edited by Florian on Fri Sep 23, 2011 2:22 pm, edited 2 times in total.
- Giovanni
- Site Admin
- Posts: 14895
- Joined: Wed May 27, 2009 8:48 am
- Has thanked: 1202 times
- Been thanked: 997 times
Re: Interrupt support on PAL module
I will give it a try in the weekend, anyway, a test application should be added.
Giovanni
Giovanni
Re: Interrupt support on PAL module
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
Regards,
Florian
- Attachments
-
- ext_lld_sam7.zip
- (4.02 KiB) Downloaded 468 times
- Giovanni
- Site Admin
- Posts: 14895
- Joined: Wed May 27, 2009 8:48 am
- Has thanked: 1202 times
- Been thanked: 997 times
Re: Interrupt support on PAL module
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
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
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)
It was not so far by what Giovanni did, that is a good news for me
- Giovanni
- Site Admin
- Posts: 14895
- Joined: Wed May 27, 2009 8:48 am
- Has thanked: 1202 times
- Been thanked: 997 times
Re: Interrupt support on PAL module
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
I renamed it to EXT in order to make it less STM32ish
Giovanni