On 05/26/2010 06:12 PM, Michael Karcher wrote:
Am Mittwoch, den 26.05.2010, 19:23 +0200 schrieb Carl-Daniel Hailfinger:
+int rayer_bitbang_spi_init(void) +{
/* Pick a default value for now. */
lpt_iobase = 0x378;
get_io_perms();
Ah, direct port access for the parallel port. While this is definitely the way that works independent of the operating system (as it works around the operating system), it is a pity to use this on operating systems that have a clean parallel port bitbang interface. It happens to be the case that Linux does support parallel port bitbanging using /dev/parport. Any chance to use OS-specific parallel port interfaces where possible?
AH, be careful here, using the Linux driver /dev/parport vs direct pport access will surely slow things down. And with a parallel port you need as much speed as possible. I guess it is a question of speed vs the "proper" way....