X-Git-Url: https://review.openocd.org/gitweb?a=blobdiff_plain;f=src%2Fhelper%2Fbinarybuffer.h;h=633ed9e5dc6aa111189f9ed4a646c56357903d25;hb=665ac60ef0289ebc520126872efac6bbdf831f61;hp=cc0be57dcfbac7dcda4160d3d3b468236c36f821;hpb=6d639b09f0e3ef0c1cc38606a851e6ae9a4f4e30;p=openocd.git diff --git a/src/helper/binarybuffer.h b/src/helper/binarybuffer.h index cc0be57dcf..633ed9e5dc 100644 --- a/src/helper/binarybuffer.h +++ b/src/helper/binarybuffer.h @@ -156,4 +156,9 @@ int bit_copy_queued(struct bit_copy_queue *q, uint8_t *dst, unsigned dst_offset, void bit_copy_execute(struct bit_copy_queue *q); void bit_copy_discard(struct bit_copy_queue *q); +/* functions to convert to/from hex encoded buffer + * used in ti-icdi driver and gdb server */ +int unhexify(char *bin, const char *hex, int count); +int hexify(char *hex, const char *bin, int count, int out_maxlen); + #endif /* BINARYBUFFER_H */