[En-Nut-Discussion] Error in 7segtst.c

Ulrich Prinz uprinz2 at netscape.net
Sat Mar 27 23:41:00 CET 2010


Hi!

Am 27.03.2010 14:24, schrieb sdumanic:
>
> When i try to compile 7segtst.c under ethernut-4.9.8 I got following error:
>
>> "make" all
> arm-elf-gcc -c -I../../nutbld/include  -I../../nut/include  -DAT91SAM7X_EK
> -mcpu=arm7tdmi -mthumb-interwork -Os -Wall -Wstrict-prototypes
> -Wa,-a=7segtst.lst  -o 7segtst.o 7segtst.c
> 7segtst.c: In function 'main':
> 7segtst.c:98: error: 'NUT_CONFIG_7SEG_SPIBUS' undeclared (first use in this
> function)
> 7segtst.c:98: error: (Each undeclared identifier is reported only once
> 7segtst.c:98: error: for each function it appears in.)
> 7segtst.c:98: error: 'NUT_CONFIG_7SEG_CS' undeclared (first use in this
> function)
> make: *** [7segtst.o] Error 1
>
> How to declare this ?
>
Sorry, my fault. Was a leftover from an older version of Nut/OS.

Add and modify the following defines to the 7segtst.c:

#define NUT_CONFIG_7SEG_CS 0
#define NUT_CONFIG_7SEG_SPIBUS spiBus0At91

Modify means that you have to select the right chip-select and the 
correct SPI-bus where you connected the display.

Best regards,
Ulrich



More information about the En-Nut-Discussion mailing list