static void arm11_on_enter_debug_state(arm11_common_t * arm11);
-bool arm11_config_memwrite_burst = true;
-bool arm11_config_memwrite_error_fatal = true;
+int arm11_config_memwrite_burst = 1;
+int arm11_config_memwrite_error_fatal = 1;
u32 arm11_vcr = 0;
if (arm11->trst_active)
{
- arm11->halt_requested = true;
+ arm11->halt_requested = 1;
return ERROR_OK;
}
jtag_add_sleep(5000);
arm11_common_t * arm11 = target->arch_info;
- arm11->trst_active = true;
+ arm11->trst_active = 1;
#endif
return ERROR_OK;
-int arm11_handle_bool(struct command_context_s *cmd_ctx, char *cmd, char **args, int argc, bool * var, char * name)
+int arm11_handle_bool(struct command_context_s *cmd_ctx, char *cmd, char **args, int argc, int * var, char * name)
{
if (argc == 0)
{
case 'F':
case 'd': /* disable */
case 'D':
- *var = false;
+ *var = 0;
break;
case '1': /* 1 */
case 'T':
case 'e': /* enable */
case 'E':
- *var = true;
+ *var = 1;
break;
}
#include "arm_jtag.h"
-#define bool int
-#define true 1
-#define false 0
-
#define asizeof(x) (sizeof(x) / sizeof((x)[0]))
#define NEW(type, variable, items) \
*/
typedef struct arm11_sc7_action_s
{
- bool write; /**< Access mode: true for write, false for read. */
+ int write; /**< Access mode: true for write, false for read. */
u8 address; /**< Register address mode. Use enum #arm11_sc7 */
u32 value; /**< If write then set this to value to be written.
In read mode this receives the read value when the