SPIportSelect

Porting between devices

Jest
 
Avatar
 
Subject:

SPIportSelect

 · 
Posted: 28.06.2010 - 09:51  ·  #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
Gender:
Location: Germany
Age: 24
Homepage: e-lab.de
Posts: 5558
Registered: 03 / 2002
Subject:

Re: SPIportSelect

 · 
Posted: 28.06.2010 - 11:58  ·  #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
Selected quotes for multi-quoting:   0

Registered users in this topic

Currently no registered users in this section

The statistic shows who was online during the last 5 minutes. Updated every 90 seconds.
MySQL Queries: 15 · Cache Hits: 14   50   64 · Page-Gen-Time: 0.020519s · Memory Usage: 2 MB · GZIP: on · Viewport: SMXL-HiDPI