tap_init(): Added test for return value of the ioperm() call.

git-svn-id: https://urjtag.svn.sourceforge.net/svnroot/urjtag/trunk@129 b68d4a1b-bc3d-0410-92ed-d4ac073336b7
master
Marcel Telka 23 years ago
parent 28cfbfe880
commit a359fded6d

@ -40,7 +40,11 @@ void
tap_init( void )
{
tap_state_init();
ioperm( port, 2, 1 );
printf( "Initilizing parallel TAP on port 0x%x\n", port );
if (ioperm( port, 2, 1 )) {
printf( "Error: Initialization failed!\n" );
return;
}
tap_state_set_trst( (inb( port ) >> TRST) & 1 );
}

Loading…
Cancel
Save