So while I'm exploring hostmot2 communication interfaces,
I figured I might as well be thorough and try out BSPI (again,
as I looked into it several years ago briefly).  In the latest
incarnation, the man page (hostmot2, lcnc 2.19-pre0) says
that a set of functions are exported:

BSPI
       The  BSPI  (Buffered  SPI) driver is unusual in that it does not create
       any HAL pins. Instead the driver exports a set of functions that can be
       used  by  a sub-driver for the attached hardware. Typically these would
       be written in the "comp"

       pre-processing          language:           see           http://linux‐
       cnc.org/docs/html/hal/comp.html  or man halcompile for further details.
       See man mesa_7i65 and the source of mesa_7i65.comp  for  details  of  a
       typical     sub-driver.      See     man    hm2_bspi_setup_chan,    man
       hm2_bspi_write_chan,   man   hm2_tram_add_bspi_frame,   man   hm2_allo‐
       cate_bspi_tram,      man      hm2_bspi_set_read_funtion     and     man
       hm2_bspi_set_write_function for the exported functions.

       The names of the available channels are printed to standard output dur‐
       ing   the   driver   loading  process  and  take  the  form  hm2_<board
       name>.<board index>.bspi.<index> For example hm2_5i23.0.bspi.0

So, I have a bitstream loaded with a BSPI channel and get this in my axis load:

...
hm2/hm2_7i90.0: created Buffered SPI function hm2_7i90.0.bspi.0.
...
hm2/hm2_7i90.0:     IO Pin 024 (P2-01): Buffered SPI Interface #0, pin /Frame 
(Output)
hm2/hm2_7i90.0:     IO Pin 025 (P2-03): Buffered SPI Interface #0, pin Serial 
Out (Output)
hm2/hm2_7i90.0:     IO Pin 026 (P2-05): Buffered SPI Interface #0, pin Clock 
(Output)
hm2/hm2_7i90.0:     IO Pin 027 (P2-07): Buffered SPI Interface #0, pin Serial 
In (Input)
hm2/hm2_7i90.0:     IO Pin 028 (P2-09): Buffered SPI Interface #0, pin CS2 
(Output)
hm2/hm2_7i90.0:     IO Pin 029 (P2-11): Buffered SPI Interface #0, pin CS1 
(Output)
hm2/hm2_7i90.0:     IO Pin 030 (P2-13): Buffered SPI Interface #0, pin CS0 
(Output)

I do not, however, see any of the advertised functions appear in the machine 
configuration.
Am I misunderstanding what "exported functions" means?  The only functions that 
appear
are ones I addf'ed.  I've looked at the mesa_7i65.comp example, but I'd like to 
see a hal
file that uses mesa_7i65.  There doesn't seem to be any such example in the 
source tree.

Thanks again.
-- Ralph

_______________________________________________
Emc-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/emc-users

Reply via email to