On Sat, 16 Mar 2013 14:38:33 -0600 Sebastian Kuzminsky <[email protected]> wrote:
> Matt Shaver <[email protected]> wrote: > > >Is anyone else working on hostmot2 over spi? If not, does anyone have > >any advise or pointers on how to go about this? > > > >My best guess is to look at the difference between hm2_pci and > >hm2_7i43 and then insert some SPI related code to change the > >physical interface. > > You're on exactly the right track. > > In one way all AnyIO FPGAs look the same to LinuxCNC: they all > present a 16-bit register file for talking to the firmware. > > In another way AnyIO FPGAs look different: the way they connect this > register file to LinuxCNC. > > The hostmot2 driver system has a layer for connecting the FPGA's > register file to LinuxCNC (without caring what gets read and written > to the FPGA registers) and another layer for having intelligent > conversations with the FPGA (without caring how the communication > happens). > > The interface between these two layers is the hostmot2_lowlevel_io_t > structure. hm2_7i43 and hm2_pci both create a hostmot2_lowlevel_io_t > structure for each FPGA they find, and pass it up to the higher layer > via hm2_register(). > > The fields of the struct should hopefully be well commented, ask if > something is unclear. Thanks Seb, this is the kind of information I was fishing for :) Thanks, Matt ------------------------------------------------------------------------------ Everyone hates slow websites. So do we. Make your web apps faster with AppDynamics Download AppDynamics Lite for free today: http://p.sf.net/sfu/appdyn_d2d_mar _______________________________________________ Emc-developers mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/emc-developers
