Yes Jeff, that looks like exactly what I did. -- Bearing in mind that it
was for a Acess PCI-DIO-48s board. I think that it
can be used with the Axiom board as well with 100% success ( I wish I had
one of their boards to test ) .
I think someone should test this before any changes are made for
EMC2.2.0. ( see if the Axiom board sets all outputs low upon initialisation
) ( loadrt hal_ax5214h cfg="????????" from halrun)
Thanks, Dave
At 07:58 AM 9/26/2007, you wrote:
>Can you please look over the following "diff" and tell me if it
>expresses the same changes you made? If so, I'll make sure this change
>is in emc 2.2.0 when it is released.
>
>Jeff
>
>--- hal_ax5214h.c 21 Jan 2007 17:00:16 -0000 1.14
>+++ hal_ax5214h.c 26 Sep 2007 12:57:30 -0000
>@@ -576,7 +576,7 @@ static int export_board(int boardnum, bo
> msg = rtapi_get_msg_level();
> rtapi_set_msg_level(RTAPI_MSG_WARN);
> retval = 0;
>- config = 0;
>+ config = 0x80;
> dir = board->dir_bits & 0x01;
> retval += export_port ( boardnum, 0, &(board->port_1A[0]), 8, dir );
> if ( dir == 0 ) {
>@@ -598,7 +598,7 @@ static int export_board(int boardnum, bo
> config |= 0x08;
> }
> board->port1config = config;
>- config = 0;
>+ config = 0x80;
>
> dir = board->dir_bits & 0x10;
> retval += export_port ( boardnum, 24, &(board->port_2A[0]), 8, dir );
>@@ -623,14 +623,14 @@ static int export_board(int boardnum, bo
> board->port2config = config;
> /* initialize hardware - all outputs high
> (since outputs are active low) */
>+ 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->port1config, board->base_addr+3);
>+ 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);
>- outb(board->port2config, board->base_addr+7);
> /* restore saved message level */
> rtapi_set_msg_level(msg);
> return retval;
>
>
>-------------------------------------------------------------------------
>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
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