Poor man's factored hex table.
authorbernie <bernie@38d2e660-2303-0410-9eaa-f027e97ec537>
Tue, 1 Mar 2005 23:23:25 +0000 (23:23 +0000)
committerbernie <bernie@38d2e660-2303-0410-9eaa-f027e97ec537>
Tue, 1 Mar 2005 23:23:25 +0000 (23:23 +0000)
git-svn-id: https://src.develer.com/svnoss/bertos/trunk@382 38d2e660-2303-0410-9eaa-f027e97ec537

mware/hex.c [new file with mode: 0755]
mware/hex.h [new file with mode: 0755]

diff --git a/mware/hex.c b/mware/hex.c
new file mode 100755 (executable)
index 0000000..5d797f1
--- /dev/null
@@ -0,0 +1,12 @@
+/*!
+ * \file
+ * <!--
+ * Copyright 2005 Develer S.r.l. (http://www.develer.com/)
+ * This file is part of DevLib - See README.devlib for information.
+ * -->
+ *
+ * \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 (executable)
index 0000000..e99f596
--- /dev/null
@@ -0,0 +1,17 @@
+/*!
+ * \file
+ * <!--
+ * Copyright 2005 Develer S.r.l. (http://www.develer.com/)
+ * This file is part of DevLib - See README.devlib for information.
+ * -->
+ *
+ * \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 */