[En-Nut-Discussion] owibus sample fails to build

Harald Kipp harald.kipp at egnite.de
Sat Aug 18 15:31:26 CEST 2012

Hi Uwe,

On 17.08.2012 22:28, Uwe Bonnes wrote:
>>>>>> "Harald" == Harald Kipp <harald.kipp at egnite.de> writes:
>     Harald> To be able to move on, I temporarily moved the sample to hwtest.
> How should we handle that case? There is no intrinsic connection of either
> some of the UARTs or a port pin to the OWI device. The board either has such
> a connection or not. So to use some default UART or port pin to let the
> example compile seems inadequate. But if the owibus example is not in the
> app directory, chances are much lower that people detect the example. Any
> ideas?

It had been discussed to use the Configurator to automatically copy target-dependent samples to the app directory. However, so far nothing happened.

Another solution is to use any of the configuration macros to ifdef code parts, e.g.

#if defined(MCU_AT91)
  puts("DMA is not supported on your hardware");

As long as the source compiles and the binary executes, then everything is fine.

> B.t.w. thanks for the style/licence/etc corrections. I will try to learn for
> future contribytions.

You're welcome. B.t.w. are you using an English keyboard? y is quite far away from u on the German key layout.



More information about the En-Nut-Discussion mailing list