X-Git-Url: https://review.openocd.org/gitweb?p=openocd.git;a=blobdiff_plain;f=src%2Ftarget%2Fcortex_m3.h;h=e16aa89feb96544664d4997f8e032843656341bd;hp=759c2bc711c34b4f25e89c0a01328cf210c58f9a;hb=8c6b95ed162ada54b1165ca0c9b46aa92f92975c;hpb=8193f17c3aeb948ca8f70ed3361e8b2bccefffed diff --git a/src/target/cortex_m3.h b/src/target/cortex_m3.h index 759c2bc711..e16aa89feb 100644 --- a/src/target/cortex_m3.h +++ b/src/target/cortex_m3.h @@ -26,7 +26,6 @@ #ifndef CORTEX_M3_H #define CORTEX_M3_H -#include "target.h" #include "armv7m.h" @@ -135,6 +134,19 @@ struct cortex_m3_dwt_comparator uint32_t dwt_comparator_address; }; +enum cortex_m3_soft_reset_config +{ + CORTEX_M3_RESET_SYSRESETREQ, + CORTEX_M3_RESET_VECTRESET, +}; + +enum cortex_m3_isrmasking_mode +{ + CORTEX_M3_ISRMASK_AUTO, + CORTEX_M3_ISRMASK_OFF, + CORTEX_M3_ISRMASK_ON, +}; + struct cortex_m3_common { int common_magic; @@ -159,6 +171,10 @@ struct cortex_m3_common struct cortex_m3_dwt_comparator *dwt_comparator_list; struct reg_cache *dwt_cache; + enum cortex_m3_soft_reset_config soft_reset_config; + + enum cortex_m3_isrmasking_mode isrmasking_mode; + struct armv7m_common armv7m; };