X-Git-Url: https://review.openocd.org/gitweb?a=blobdiff_plain;f=src%2Ftarget%2Falgorithm.h;h=ecd11770861250992e63a7ede4642d2dca70594a;hb=f1e9cef4101a6c9aba2eb65ec99404b44a5a00fc;hp=af1fd91794745f7de8aa2dfc1f84d7147e9266f3;hpb=4f9a9b8ebae8425eda3a71ccb782789cd3b8f6b7;p=openocd.git diff --git a/src/target/algorithm.h b/src/target/algorithm.h index af1fd91794..ecd1177086 100644 --- a/src/target/algorithm.h +++ b/src/target/algorithm.h @@ -17,26 +17,24 @@ * Free Software Foundation, Inc., * * 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. * ***************************************************************************/ + #ifndef ALGORITHM_H #define ALGORITHM_H -enum param_direction -{ +enum param_direction { PARAM_IN, PARAM_OUT, PARAM_IN_OUT }; -struct mem_param -{ +struct mem_param { uint32_t address; uint32_t size; uint8_t *value; enum param_direction direction; }; -struct reg_param -{ +struct reg_param { const char *reg_name; uint32_t size; uint8_t *value;