[En-Nut-Discussion] SW SPI bus reading data

Uwe Bonnes bon at elektron.ikp.physik.tu-darmstadt.de
Fri Sep 16 12:09:51 CEST 2016


>>>>> "Aigars" == Aigars  <aigars at egle.cs.rtu.lv> writes:

    Aigars> On re configuring NutOS&rebuilding and adding to httpserv.c
    Aigars> file: NUTSPINODE my_node = { &spiBus0Gpio, /* Pointer to the bus
    Aigars> controller driver. */ NULL, /* Optional pointer to device
    Aigars> specific settings. */ 10000, /* SPI clock rate. */ 3, /* SPI
    Aigars> mode. */ 8, /* SPI data bits. */ 0, /* Chip select index. */ };
    Aigars> I get: c:\ethernut-4.6.5\nutapp_charon2\httpd>make avr-gcc -c
    Aigars> -mmcu=atmega128 -Os -fno-delete-null-pointer-checks -Wall
    Aigars> -Wstrict-prototypes -Wa,-ahlms=httpserv.lst -DCHARON2
    Aigars> -D__HARVARD_ARCH__ -I../../nutbld_charon2/include
    Aigars> -I../../nut/include httpserv.c -o httpserv.o httpserv.c:259:
    Aigars> error: expected '=', ',', ';', 'asm' or '__attribute__' before
    Aigars> 'my_node' httpserv.c: In function 'NutAppMain': httpserv.c:886:
    Aigars> warning: no return statement in function returning non-void
    Aigars> make: *** [httpserv.o] Error 1

Your error output refers to line 259 in changed code that you don't show. So
I can not decipher or reproduce.

And please, quote less...

Bye

-- 
Uwe Bonnes                bon at elektron.ikp.physik.tu-darmstadt.de

Institut fuer Kernphysik  Schlossgartenstrasse 9  64289 Darmstadt
--------- Tel. 06151 1623569 ------- Fax. 06151 1623305 ---------


More information about the En-Nut-Discussion mailing list