[En-Nut-Discussion] Porting Nut/OS to atmel's SAM3U (cortex-m3)

Harald Kipp harald.kipp at egnite.de
Fri Apr 9 09:24:03 CEST 2010


On 09.04.2010 02:59, Ulrich Prinz wrote:

> Let's get the platform in. Another LPC is waiting and I'll get some old 
> Betty remotes that like to be driven by Nut/OS as well, driven by LPC 
> ARMs too.

Michael Fischer and I inspected the code a bit further and unfortunately
there are more problems than expected.

Nikolay got most of the header files from Atmel's framework. They are
somewhat different from the headers used by Nut/OS. As a result we have
a lot of duplicate code. For example gpioa_sam3u.c differs from
gpioa_at91.c by a few lines only, simply because of different port names:

- outr(PIOA_IER, _BV(bit));
+ outr(AT91C_PIOA_IER, _BV(bit));

This may soon result in a maintenance nightmare.

What really stopped me from publishing is Nikolay's ease of handling
copyrights. ;-) Michael found several lines, which had been directly
copied from Atmel's code without mentioning this in the copyright notice.

Don't get me wrong, IMHO this doesn't reduce Nikolay's credit making
Nut/OS run on Cortex. But before adding this to our code base, it'd need
some "fine tuning".

Harald




More information about the En-Nut-Discussion mailing list