[En-Nut-Discussion] Cortex ih_xxx_interuptY code duplication, continued
Ole Reinhardt
ole.reinhardt at embedded-it.de
Mon Jul 30 16:44:08 CEST 2012
Hi Harald,
> In the first place I'd recommend to keep the API compatible. It is
> quite frustrating for non regular Nut/OS users to find their
> applications not compiling after upgrading Nut/OS. Or, to put it the
> other way: It was quite enjoyable to see my I2C apps compiling and
> running fine, even after Ulrich significantly changed the I2C API. That
> was good work! (Side note: It would have been even better without the
> typo in "Tranceiver".)
>
> On the other hand, if you don't see a chance to keep downward
> compatibility:
>
> 1) Not many applications will not use their own interrupt registration.
> Instead they will use existing drivers.
Some smaller changes to the API will be needed. Especially the ISR
routine won't be a void function any longer but will have a return
value. I think most other changes will be hided in the structs.
> 2) Change it now. Moving from Nut/OS major version 4 to 5 implies, that
> major things changed. After 5.x is out, such changes are less
> acceptable.
Yes, I will try to implement a prototype ASAP, but this might take three
more days, as I'm out of office again for two days.
Before I'll check in anything I will send a patch to the list for review
and commenting.
Bye,
Ole
--
Thermotemp GmbH, Embedded-IT
Embedded Hard-/ Software and Open Source Development,
Integration and Consulting
http://www.embedded-it.de
Geschäftsstelle Siegen - Steinstraße 67 - D-57072 Siegen -
tel +49 (0)271 5513597, +49 (0)271-73681 - fax +49 (0)271 736 97
Hauptsitz - Hademarscher Weg 7 - 13503 Berlin
Tel +49 (0)30 4315205 - Fax +49 (0)30 43665002
Geschäftsführer: Jörg Friedrichs, Ole Reinhardt
Handelsregister Berlin Charlottenburg HRB 45978 UstID DE 156329280
More information about the En-Nut-Discussion
mailing list