the new code mod is like this:

/* initialize hardware - all outputs high
         (since outputs are active low) */
==============================  ADDED THE FOLLOWING
     outb(0xff, board->base_addr+0);
     outb(0xff, board->base_addr+1);
     outb(0xff, board->base_addr+2);
     outb(0xff, board->base_addr+4);
     outb(0xff, board->base_addr+5);
     outb(0xff, board->base_addr+6);
===============================
     outb(board->port1config, board->base_addr+3);
     outb(0xff, board->base_addr+0);
     outb(0xff, board->base_addr+1);
     outb(0xff, board->base_addr+2);
     outb(board->port2config, board->base_addr+7);
     outb(0xff, board->base_addr+4);
     outb(0xff, board->base_addr+5);
     outb(0xff, board->base_addr+6);
     /* restore saved message level */
     rtapi_set_msg_level(msg);
     return retval;

The rest was all in place, and it was easier for my head. ( and my 
remaining fingers )
It works fine,  I noticed a very short compile time, is this normal? 
remember, Aboriginal "c" code skills here.
As far as the 0x80, the Axiom manual shows the three highest bits in the 
control register to be " dont care "
On another subject, How  do I get an integer number in to Classicladder?
Thanks for your interest,

Dave 


-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Emc-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/emc-users

Reply via email to