Re: EX
Posted: Thu Mar 17, 2016 9:33 pm
steved wrote:In principle this is absolutely right; however I found on a 32F051 application that adding the EXT driver took up about 1K of my 100 bytes of previously unused code space. So I had to manage the interrupt myself (easy enough with the lower level APIs).
Adding the EXT driver would be proportionally less demanding on the larger processors.
Not sure how practical it would be, but could there be a project-wide choice of either using the EXT driver, or of implementing dedicated coding?
The problems that I can see are:
1) The peripheral driver would no more be portable but it would need to deal with HW directly (EXTI, ISR etc). You would make a gyro driver for STM32 not a generic one.
2) If a peripheral driver takes an EXTI ISR then the EXT driver could not be used because it would conflict.
This is why I suggest to keep notifications out of the peripheral drivers.
About EXT, it is not set in stone, any better idea for such functionality?
Giovanni