mirror of
https://github.com/mariusgreuel/avrdude.git
synced 2025-09-27 22:45:27 +00:00
Change port value from lpt1alt to lpt3. Other formatting changes.
git-svn-id: svn://svn.savannah.nongnu.org/avrdude/trunk/avrdude@229 81a1dc3b-b13d-400b-aceb-764788c761c2
This commit is contained in:
9
ppiwin.c
9
ppiwin.c
@@ -49,7 +49,7 @@ extern char *progname;
|
||||
|
||||
#define DEVICE_LPT1 "lpt1"
|
||||
#define DEVICE_LPT2 "lpt2"
|
||||
#define DEVICE_LPT1ALT "lpt1alt"
|
||||
#define DEVICE_LPT3 "lpt3"
|
||||
|
||||
#define DEVICE_MAX 3
|
||||
|
||||
@@ -63,8 +63,7 @@ static const winpp winports[DEVICE_MAX] =
|
||||
{
|
||||
{DEVICE_LPT1, 0x378},
|
||||
{DEVICE_LPT2, 0x278},
|
||||
{DEVICE_LPT1ALT, 0x3BC},
|
||||
|
||||
{DEVICE_LPT3, 0x3BC},
|
||||
};
|
||||
|
||||
|
||||
@@ -297,9 +296,11 @@ static unsigned char reg2offset(int reg)
|
||||
static unsigned char inb(unsigned short port)
|
||||
{
|
||||
unsigned char t;
|
||||
|
||||
asm volatile ("in %1, %0"
|
||||
: "=a" (t)
|
||||
: "d" (port));
|
||||
|
||||
return t;
|
||||
}
|
||||
|
||||
@@ -310,6 +311,8 @@ static void outb(unsigned char value, unsigned short port)
|
||||
asm volatile ("out %1, %0"
|
||||
:
|
||||
: "d" (port), "a" (value) );
|
||||
|
||||
return;
|
||||
}
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user