SPIportSelect

Porting between devices

Jest
 
Avatar
 
Betreff:

SPIportSelect

 · 
Gepostet: 28.06.2010 - 09:51 Uhr  ·  #1
Hi,

I have the same unit on different xMega devices. So, once procedures in unit are using SPI_D and other time SPI_E. I can play with conditional compiling but was thinking, that something like SerPortSelect would be nice to have. SpiPortSelect? :-)

Best regards,
Andrej
rh
Administrator
Avatar
Geschlecht:
Herkunft: Germany
Alter: 25
Homepage: e-lab.de
Beiträge: 5558
Dabei seit: 03 / 2002
Betreff:

Re: SPIportSelect

 · 
Gepostet: 28.06.2010 - 11:58 Uhr  ·  #2
Hello Andrej,

most AVRco SPI-drivers provide the callback "onSPIss" or similar. If this function is present in the application then the system doesn't do any SS but always calls this procedure. On the other hand if the driver allows the define of a SS-port then the driver always uses this port/pin for doing the SS.
But a generic SS or SPI (change at runtime on the fly) is not possible.

rolf
Gewählte Zitate für Mehrfachzitierung:   0

Registrierte in diesem Topic

Aktuell kein registrierter in diesem Bereich

Die Statistik zeigt, wer in den letzten 5 Minuten online war. Erneuerung alle 90 Sekunden.
MySQL Queries: 15 · Cache Hits: 14   50   64 · Page-Gen-Time: 0.04359s · Speichernutzung: 2 MB · GZIP: ein · Viewport: SMXL-HiDPI