remove warnings.
authoroharboe <oharboe@b42882b7-edfa-0310-969c-e2dbd0fdcd60>
Fri, 29 Feb 2008 11:55:09 +0000 (11:55 +0000)
committeroharboe <oharboe@b42882b7-edfa-0310-969c-e2dbd0fdcd60>
Fri, 29 Feb 2008 11:55:09 +0000 (11:55 +0000)
git-svn-id: svn://svn.berlios.de/openocd/trunk@391 b42882b7-edfa-0310-969c-e2dbd0fdcd60

src/target/arm11.c
src/target/arm11.h
src/target/arm11_dbgtap.c

index 905a5d77eda112297191ebf6e508db499e76235f..05b6112e87e9f8844c8520ff32a4b8c193391bdc 100644 (file)
@@ -48,8 +48,8 @@
 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;
 
 
@@ -727,7 +727,7 @@ int arm11_halt(struct target_s *target)
 
     if (arm11->trst_active)
     {
-       arm11->halt_requested = true;
+       arm11->halt_requested = 1;
        return ERROR_OK;
     }
 
@@ -971,7 +971,7 @@ int arm11_assert_reset(struct target_s *target)
     jtag_add_sleep(5000);
 
     arm11_common_t * arm11 = target->arch_info;
-    arm11->trst_active = true;
+    arm11->trst_active = 1;
 #endif
 
     return ERROR_OK;
@@ -1517,7 +1517,7 @@ void arm11_build_reg_cache(target_t *target)
 
 
 
-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)
     {
@@ -1535,7 +1535,7 @@ int arm11_handle_bool(struct command_context_s *cmd_ctx, char *cmd, char **args,
     case 'F':
     case 'd':  /* disable */
     case 'D':
-       *var = false;
+       *var = 0;
        break;
 
     case '1':  /* 1 */
@@ -1543,7 +1543,7 @@ int arm11_handle_bool(struct command_context_s *cmd_ctx, char *cmd, char **args,
     case 'T':
     case 'e':  /* enable */
     case 'E':
-       *var = true;
+       *var = 1;
        break;
     }
 
index 6e3b1d1536e304f4156fdadf1ab194cad0cc033f..9c1bcd06774a4686ba86a1ce7c14e2b91bf85595 100644 (file)
 #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) \
@@ -259,7 +255,7 @@ int arm11_add_ir_scan_vc(int num_fields, scan_field_t *fields, enum tap_state st
  */
 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
index eed48bb3e07af993b968a55f63b328b7c0db6b5d..97ec2fba0e207b11b7659df70435102323516e54 100644 (file)
@@ -728,7 +728,7 @@ void arm11_sc7_clear_vbw(arm11_common_t * arm11)
     {size_t i;
     for (i = 0; i < asizeof(clear_bw); i++)
     {
-       clear_bw[i].write       = true;
+       clear_bw[i].write       = 1;
        clear_bw[i].value       = 0;
     }}