Re: SW SPI bus reading data
Uwe Bonnes <bon-1JbLm1bU5j5ZIx36JBfelj3+ndqKAYMe9FMPySWZwLkb1SvskN2V4Q@public.gmane.org> Fri, 16 Sep 2016 12:09:51 +0200
| Newsgroups | gmane.comp.hardware.microcontrollers.ethernut |
|---|---|
| Message-ID | <[email protected]> |
>>>>> "Aigars" == Aigars <[email protected]> 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-1JbLm1bU5j5ZIx36JBfelj3+ndqKAYMe9FMPySWZwLkb1SvskN2V4Q@public.gmane.org Institut fuer Kernphysik Schlossgartenstrasse 9 64289 Darmstadt --------- Tel. 06151 1623569 ------- Fax. 06151 1623305 --------- _______________________________________________ http://lists.egnite.de/mailman/listinfo/en-nut-discussion