From 8ea8887c13de8a1f39412335ab96a4822f192c8a Mon Sep 17 00:00:00 2001 From: bernie Date: Tue, 1 Mar 2005 23:23:25 +0000 Subject: [PATCH] Poor man's factored hex table. git-svn-id: https://src.develer.com/svnoss/bertos/trunk@382 38d2e660-2303-0410-9eaa-f027e97ec537 --- mware/hex.c | 12 ++++++++++++ mware/hex.h | 17 +++++++++++++++++ 2 files changed, 29 insertions(+) create mode 100755 mware/hex.c create mode 100755 mware/hex.h diff --git a/mware/hex.c b/mware/hex.c new file mode 100755 index 00000000..5d797f1b --- /dev/null +++ b/mware/hex.c @@ -0,0 +1,12 @@ +/*! + * \file + * + * + * \brief Poor man's hex arrays (implementation). + */ + +const char hex_tab[16] = { '0','1','2','3','4','5','6','7','8','9','a','b','c','d','e','f' }; +const char HEX_tab[16] = { '0','1','2','3','4','5','6','7','8','9','A','B','C','D','E','F' }; diff --git a/mware/hex.h b/mware/hex.h new file mode 100755 index 00000000..e99f596e --- /dev/null +++ b/mware/hex.h @@ -0,0 +1,17 @@ +/*! + * \file + * + * + * \brief Poor man's hex arrays (implementation). + */ + +#ifndef MWARE_HEX_H +#define MWARE_HEX_H + +extern const char hex_tab[16]; +extern const char HEX_tab[16]; + +#endif /* MWARE_HEX_H */ -- 2.25.1