Caution: Stupid Question Ahead: In a quick look, I don't have an ...emc2/src directory. I am using a "Ubuntu (2.6.12-magma) pre-installed with EMC2 (2.1.1) install shell script" install. I guess I need a "development" or "source" install? (Please don't give me anything sharp, like a soldering iron.)
Kirk Wallace On Wed, 2007-03-28 at 15:15 -0400, John Kasunich wrote: > Kirk Wallace wrote: > > I am looking at taking another stab at using SPI with EMC. Originally, I > > wanted to port the Rutex Windows driver and utilities to Linux. But for > > now, I need to take baby steps towards that goal. > > > > I think controlling a spindle VFD (0 to +10V) with a MAX5312 ADC on the > > parallel port might be doable. > > > > I found an SPI driver: > > > > http://www.paul.de/downloadables/#spi-driver > > > > I could not compile this driver for my 2.6 kernel, but that may not be a > > big issue since for EMC, I need to have a kernel module for the RT > > kernel(?). I have studied the driver source, and I have been able to > > explore SPI I/O through bit banging a parallel port (using 32 bytes to > > transfer one 16 bit word seems a waste). So now, I guess I need to learn > > how to use HAL's comp utility to compile a max5312_parport.ko file which > > would contain a function for each pin I need to use? > > > > I was thinking of studying some of the currently installed drivers, but > > so far I have only found the .ko files. Are there any .c versions? > > The .ko files are (as you know) the actual kernel modules, they live in > emc2/rtlib (this is for a run-in-place build in top level dir emc2/). > > The source for the realtime components (not hardware drivers) is in > emc2/src/hal/components, and consist of either .c files or .comp files. > The .comp files generate intermediate .c files during the build process. > I find .comp to be extremely convenient for simple components, but a bit > more limiting for complex ones. (In many cases, comp can do what I > need, but I'm not familiar enough with its extended capabilities, so I > just use good old C.) > > The source for hardware drivers in in emc2/src/hal/drivers, and is > mostly .c files (I'm not sure if any drivers use .comp format). > > Regards, > > John Kasunich > > > ------------------------------------------------------------------------- > Take Surveys. Earn Cash. Influence the Future of IT > Join SourceForge.net's Techsay panel and you'll get the chance to share your > opinions on IT & business topics through brief surveys-and earn cash > http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV > _______________________________________________ > Emc-users mailing list > Emc-users@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/emc-users > ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys-and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ Emc-users mailing list Emc-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/emc-users