> From: [email protected] [mailto:[email protected]] On 
> Behalf Of Dennis Lee Bieber
> On Tue, 25 May 2021 19:44:55 -0700, in gmane.comp.hardware.beagleboard.user
> "John Dammeyer" <[email protected]> wrote:
> 
> 
> >
> >OK.  Hadn't noticed until I tried it on the Beagle that it uses 
> >PXL.Boards.RPi.pas which has the definitions for the high speed I/O.  The
> Beagle doesn't appear to have that feature as there is no PXL.Boards.BBB.pas 
> file.  Looks like Beagle I/O has to go through the file
> system.
> 
>       Well -- it might be possible to clone the R-Pi version and redefine all
> the memory and bitmap addresses to match the BBB <G>, and then modify
> whatever code detects the platform...
> 
That would have to be done.

> >
> >So this particular SPI program is _not_ portable from the Pi to the Beagle 
> >and therefore I will stop talking about it on this
> Beagleboard forum.
> 
>       Technically, I think the "program" source is portable, but not binaries
> -- the device access is different between the two, but the end result
> should be the same.
> 

Well almost.  In the uses section PXL.Devices.RPi or PCL.Devices.BBB would be 
one area set up with an 
{$IFDEF}

Same with the path to the SPI.  

And the code was designed to run more than 1 SPI device which is why they were 
inclining to perhaps two or three SEL lines and a decoder to deal with more 
than one.  The comment in the code as I recall was to leave the actual physical 
SPI0 CS disconnect since it can't be disabled and used as gpio with the SPI 
active.  Although it did seem like it with the config-pins function.  At least 
on the Beagle.

Tomorrow I'll take a closer look at the structures and write a dump utility to 
compare the two.  That should give a clue as to where the system ioctl is 
hiccupping.
John


-- 
For more options, visit http://beagleboard.org/discuss
--- 
You received this message because you are subscribed to the Google Groups 
"BeagleBoard" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/beagleboard/02c101d751e7%24e6fb40c0%24b4f1c240%24%40autoartisans.com.

Reply via email to