Use C89/C99/C++ compliant boolean types

git-svn-id: svn://svn.berlios.de/openocd/trunk@1370 b42882b7-edfa-0310-969c-e2dbd0fdcd60
This commit is contained in:
kc8apf
2009-02-10 18:21:17 +00:00
parent 725749de20
commit e77ae9096a
14 changed files with 54 additions and 30 deletions
+7 -3
View File
@@ -29,6 +29,7 @@
#include "command.h"
#if 0
#define _DEBUG_JTAG_IO_
#endif
@@ -37,6 +38,7 @@
#define DEBUG_JTAG_IOZ 64
#endif
/* 16 Tap States, from page 21 of ASSET InterTech, Inc.'s svf.pdf
*/
enum tap_state {
@@ -57,6 +59,7 @@ typedef struct tap_transition_s
//extern tap_transition_t tap_transitions[16]; /* describe the TAP state diagram */
/*-----<Cable Helper API>-------------------------------------------*/
/* The "Cable Helper API" is what the cable drivers can use to help implement
@@ -147,9 +150,9 @@ int tap_move_ndx(tap_state_t astate);
/**
* Function tap_is_state_stable
* returns TRUE if the \a astate is stable.
* returns true if the \a astate is stable.
*/
int tap_is_state_stable(tap_state_t astate);
bool tap_is_state_stable(tap_state_t astate);
/**
* Function tap_state_transition
@@ -158,7 +161,7 @@ int tap_is_state_stable(tap_state_t astate);
* @param tms is either zero or non-zero, just like a real TMS line in a jtag interface.
* @return tap_state_t - the next state a TAP would enter.
*/
tap_state_t tap_state_transition(tap_state_t current_state, int tms);
tap_state_t tap_state_transition(tap_state_t current_state, bool tms);
/**
* Function tap_state_name
@@ -168,6 +171,7 @@ const char* tap_state_name(tap_state_t state);
/*-----</Cable Helper API>------------------------------------------*/
extern tap_state_t cmd_queue_end_state; /* finish DR scans in dr_end_state */
extern tap_state_t cmd_queue_cur_state; /* current TAP state */