Changes between Version 1 and Version 2 of IoPorts
- Timestamp:
- 04/07/07 13:12:12 (6 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
IoPorts
v1 v2 1 1 When accessing the hardware directly, one of the most common operations is to read and write to hardware IO ports. 2 2 3 There is a macro located in losp/muerte/io-ports.lisp. This macroestablishes an easy to use method of using IO ports.3 There is an accessor function (and compiler-macro) located in losp/muerte/io-ports.lisp. This accessor establishes an easy to use method of using IO ports. 4 4 5 5 Reading from an IO port is accomplished through the following function call: … … 11 11 * <address> is the io-port address. 12 12 * <data-type> is one of the following: 13 * unsigned-byte814 * unsigned-byte1615 * unsigned-byte3216 * character17 * location13 * :unsigned-byte8 - an 8-bit integer (using inb/outb). 14 * :unsigned-byte16 - a 16-bit integer (inw/outw). 15 * :unsigned-byte32 - a 32-bit integer (ind/outd). 16 * :character - an 8-bit character (inb/outb). 17 * :location - a fixnum, i.e. a lispval whose lower two bits are forced to zero (ind/outd). 18 18 19 19 To write to an IO port you use the following construction
