Defines | |
| #define | XSVFEXEC_VERSION "1.0.1" |
| Executor version string. | |
| #define | SET_TMS() sbi(PORTF, 5) |
| Set TMS high on Ethernut 2. | |
| #define | CLR_TMS() cbi(PORTF, 5) |
| Set TMS low on Ethernut 2. | |
| #define | SET_TDI() sbi(PORTF, 6) |
| Set TDI high on Ethernut 2. | |
| #define | CLR_TDI() cbi(PORTF, 6) |
| Set TDI low on Ethernut 2. | |
| #define | SET_TCK() sbi(PORTF, 4) |
| Set TCK high on Ethernut 2. | |
| #define | CLR_TCK() cbi(PORTF, 4) |
| Set TCK low on Ethernut 2. | |
| #define | GET_TDO() bit_is_set(PINF, 7) |
| Get TDO status on Ethernut 2. | |
| #define | SET_TMS_TCK() { SET_TMS(); CLR_TCK(); SET_TCK(); } |
| Set TMS high and toggle TCK. | |
| #define | CLR_TMS_TCK() { CLR_TMS(); CLR_TCK(); SET_TCK(); } |
| Set TMS low and toggle TCK. | |
Functions | |
| int | XsvfInit (void) |
| Initialize the platform dependant interface. | |
| void | XsvfExit (int rc) |
| Shutdown the platform dependant interface. | |
| int | XsvfGetError (void) |
| Retrieve the last error occured in this module. | |
| u_char | XsvfGetByte (void) |
| Get next byte from XSVF buffer. | |
| u_char | XsvfGetCmd (void) |
| Get next command byte from XSVF buffer. | |
| u_char | XsvfGetState (u_char state0, u_char state1) |
| Get next byte from XSVF buffer and select a TAP state. | |
| short | XsvfGetShort (void) |
| Get next short value from XSVF buffer. | |
| long | XsvfGetLong (void) |
| Get next long value from XSVF buffer. | |
| int | XsvfReadBitString (void *buf, int num) |
| Read a specified number of bits from XSVF buffer. | |
| int | XsvfSkipComment (void) |
| Skip comment in the XSVF buffer. | |
| void | XsvfDelay (long usecs) |
| Microsecond delay. | |
Variables | |
| int | fh |
| Handle of XSVF file. | |
| int | xsvf_err |
| Last error occured in this module. | |
From the very first line of code XSVF-Executor had been created with portability in mind. No other than this module should require changes.
|
|
Microsecond delay.
Definition at line 418 of file host.c. Referenced by ReShift(). |
|
|
Shutdown the platform dependant interface. On most embedded platforms this routine will never return.
Definition at line 204 of file host.c. References fh. Referenced by main(). |
|
|
Get next byte from XSVF buffer. Call XsvfGetError() to check for errors,
Definition at line 242 of file host.c. References fh, XE_DATAUNDERFLOW, and xsvf_err. Referenced by Execute(). |
|
|
Get next command byte from XSVF buffer.
Definition at line 261 of file host.c. Referenced by Execute(). |
|
|
Retrieve the last error occured in this module.
Definition at line 230 of file host.c. References xsvf_err. Referenced by Execute(). |
|
|
Get next long value from XSVF buffer. Call XsvfGetError() to check for errors,
Definition at line 336 of file host.c. References fh, XE_DATAUNDERFLOW, and xsvf_err. Referenced by Execute(). |
|
|
Get next short value from XSVF buffer. Call XsvfGetError() to check for errors,
Definition at line 312 of file host.c. References fh, XE_DATAUNDERFLOW, and xsvf_err. Referenced by Execute(). |
|
||||||||||||
|
Get next byte from XSVF buffer and select a TAP state.
Definition at line 284 of file host.c. References fh, and UNKNOWN_STATE. Referenced by Execute(). |
|
|
Initialize the platform dependant interface. All required hardware initializations should be done in this routine. We may also initiate debug output. If the XSVF date is located in a file system, then the file will be opened here as well.
Definition at line 153 of file host.c. References fh, XE_DATAUNDERFLOW, XSVFEXEC_VERSION, and XSVFNAME. Referenced by main(). |
|
||||||||||||
|
Read a specified number of bits from XSVF buffer.
Definition at line 363 of file host.c. References fh, MAX_BITVEC_BYTES, XE_DATAOVERFLOW, XE_DATAUNDERFLOW, and xsvf_err. |
|
|
Skip comment in the XSVF buffer.
Definition at line 395 of file host.c. References fh, XE_DATAUNDERFLOW, and xsvf_err. Referenced by Execute(). |