[En-Nut-Discussion] EVK1100 SPI Slave
philippgl at freenet.de
philippgl at freenet.de
Thu Oct 9 08:33:10 CEST 2014
Good Moring Thiago,
so here is my code for initializing and transfering data on my Hardware Spi bus as Master:
#include
/* Device specific definitions. */
#include
#include
#include
#include
#include
#include
NUTSPINODE my_node = {
&spiBus0Avr32, /* Pointer to the bus controller driver. */
NULL, /* Optional pointer to device specific settings. */
10000, /* SPI clock rate. */
0, /* SPI mode */
8, /* SPI data bits. */
1
> -----Ursprüngliche Nachricht-----
> Von: Thiago A. Corrêa
> Gesendet: Mi. 08.10.2014 16:01
> An: Ethernut User Chat (English) ,
> Betreff: Re: [En-Nut-Discussion] EVK1100 SPI Slave
>
> On Wed, Oct 8, 2014 at 10:35 AM,
> wrote:
>> I think the Serial Bit Banging
> Interfaces are not working as slaves.
>> But the EVK1100 has two Hardware based
> SPI Busses.
>> Or won´t they work
> neither?
>
> Ah, those drivers (bit banging). I don't know if they support slave,
> I
> guess not from Uwe's reply. They should work fine on AVR32, that is,
> the drivers and functions they rely on are working properly.
>
> I can help with the Hardware SPI, that is what I was referring in my
> reply as being similar to AT91. That similarity makes it rather easy
> to implement something that exists in AT91.
>
> Btw, I'm using the code currently at trunk. I've done a couple of
> fixes last month, and network is working properly in trunk now. The
> next ethernut release will contain those changes, as well as changes
> we make to SPI. I would suggest checking out SVN and using that for
> development, then use the next release for production/maintenance.
>
>>
>> (Können wir auch auf deutsch
> reden?)
>>
>
> Es tut mir leid, Ich kann nur ein bisschen Deutsch verstehen. German
> is a third language for me and I'm terribly out of practice.
>
> Kind Regards,
> Thiago A. Correa
> _______________________________________________
> target="_blank">http://lists.egnite.de/mailman/listinfo/en-nut-discussion
>
>
> -----Ursprüngliche Nachricht Ende-----
---
Alle Postfächer an einem Ort. Jetzt wechseln und E-Mail-Adresse mitnehmen! http://email.freenet.de/basic/Informationen
More information about the En-Nut-Discussion
mailing list