fix for sys_in* bugs / compiler warnings
This commit is contained in:
parent
df947669b3
commit
ffa55918db
1 changed files with 4 additions and 4 deletions
|
@ -65,20 +65,20 @@
|
||||||
|
|
||||||
static U8_t in_byte(U16_t port)
|
static U8_t in_byte(U16_t port)
|
||||||
{
|
{
|
||||||
U8_t value;
|
unsigned long value;
|
||||||
int s;
|
int s;
|
||||||
if ((s=sys_inb(port, &value)) != OK)
|
if ((s=sys_inb(port, &value)) != OK)
|
||||||
printf( "lance: warning, sys_inb failed: %d\n", s );
|
printf( "lance: warning, sys_inb failed: %d\n", s );
|
||||||
return value;
|
return (U8_t) value;
|
||||||
}
|
}
|
||||||
|
|
||||||
static U16_t in_word( U16_t port)
|
static U16_t in_word( U16_t port)
|
||||||
{
|
{
|
||||||
U16_t value;
|
unsigned long value;
|
||||||
int s;
|
int s;
|
||||||
if ((s=sys_inw(port, &value)) != OK)
|
if ((s=sys_inw(port, &value)) != OK)
|
||||||
printf( "lance: warning, sys_inw failed: %d\n", s );
|
printf( "lance: warning, sys_inw failed: %d\n", s );
|
||||||
return value;
|
return (U16_t) value;
|
||||||
}
|
}
|
||||||
/*
|
/*
|
||||||
#define in_byte( x ) inb( x )
|
#define in_byte( x ) inb( x )
|
||||||
|
|
Loading…
Reference in a new issue