X-Git-Url: https://review.openocd.org/gitweb?a=blobdiff_plain;f=src%2Ftarget%2Fcortex_m3.h;h=0ed3b0adb1d26b04615cd6b54551dcfdce1c1950;hb=0d2b289048e603fd529cfceb82b589661946bea7;hp=d51c4a490f5bf363a9a96c361fca3061c538e038;hpb=eba4e394d834c5088f95412a6d3bdba622a691fc;p=openocd.git diff --git a/src/target/cortex_m3.h b/src/target/cortex_m3.h index d51c4a490f..0ed3b0adb1 100644 --- a/src/target/cortex_m3.h +++ b/src/target/cortex_m3.h @@ -101,10 +101,10 @@ extern char* cortex_m3_state_strings[]; /* NVIC_SHCSR bits */ #define SHCSR_BUSFAULTENA (1<<17) /* NVIC_DFSR bits */ -#define DFSR_HALTED 1 -#define DFSR_BKPT 2 -#define DFSR_DWTTRAP 4 -#define DFSR_VCATCH 8 +#define DFSR_HALTED 1 +#define DFSR_BKPT 2 +#define DFSR_DWTTRAP 4 +#define DFSR_VCATCH 8 #define FPCR_CODE 0 #define FPCR_LITERAL 1 @@ -189,7 +189,7 @@ typedef struct cortex_m3_common_s extern void cortex_m3_build_reg_cache(target_t *target); -enum target_state cortex_m3_poll(target_t *target); +int cortex_m3_poll(target_t *target); int cortex_m3_halt(target_t *target); int cortex_m3_resume(struct target_s *target, int current, u32 address, int handle_breakpoints, int debug_execution); int cortex_m3_step(struct target_s *target, int current, u32 address, int handle_breakpoints);