This is an automated email from the ASF dual-hosted git repository.

xiaoxiang pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-nuttx.git

commit 9fcca55ad6279a8724bee17e2f087a30d13ecbb8
Author: Gustavo Henrique Nihei <gustavo.ni...@espressif.com>
AuthorDate: Wed Feb 17 19:03:10 2021 -0300

    z80/inttypes.h: Add INT24_C and UINT24_C function macros
---
 arch/z80/include/ez80/inttypes.h | 4 ++++
 arch/z80/include/z180/inttypes.h | 2 ++
 arch/z80/include/z8/inttypes.h   | 2 ++
 arch/z80/include/z80/inttypes.h  | 2 ++
 4 files changed, 10 insertions(+)

diff --git a/arch/z80/include/ez80/inttypes.h b/arch/z80/include/ez80/inttypes.h
index fbf9d9e..aa651cb 100644
--- a/arch/z80/include/ez80/inttypes.h
+++ b/arch/z80/include/ez80/inttypes.h
@@ -114,10 +114,12 @@
 
 #  define INT8_C(x)   x
 #  define INT16_C(x)  x
+#  define INT24_C(x)  x
 #  define INT32_C(x)  x ## l
 
 #  define UINT8_C(x)  x
 #  define UINT16_C(x) x
+#  define UINT24_C(x) x
 #  define UINT32_C(x) x ## ul
 
 #else
@@ -190,10 +192,12 @@
 
 #  define INT8_C(x)   x
 #  define INT16_C(x)  x
+#  define INT24_C(x)  x
 #  define INT32_C(x)  x ## l
 
 #  define UINT8_C(x)  x
 #  define UINT16_C(x) x
+#  define UINT24_C(x) x
 #  define UINT32_C(x) x ## ul
 #endif
 
diff --git a/arch/z80/include/z180/inttypes.h b/arch/z80/include/z180/inttypes.h
index 7ee00a3..81e72dc 100644
--- a/arch/z80/include/z180/inttypes.h
+++ b/arch/z80/include/z180/inttypes.h
@@ -112,10 +112,12 @@
 
 #define INT8_C(x)   x
 #define INT16_C(x)  x
+#define INT24_C(x)  x
 #define INT32_C(x)  x ## l
 
 #define UINT8_C(x)  x
 #define UINT16_C(x) x
+#define UINT24_C(x) x
 #define UINT32_C(x) x ## ul
 
 #endif /* __ARCH_Z80_INCLUDE_Z180_INTTYPES_H */
diff --git a/arch/z80/include/z8/inttypes.h b/arch/z80/include/z8/inttypes.h
index 2b157bd..5ea4610 100644
--- a/arch/z80/include/z8/inttypes.h
+++ b/arch/z80/include/z8/inttypes.h
@@ -112,10 +112,12 @@
 
 #define INT8_C(x)   x
 #define INT16_C(x)  x
+#define INT24_C(x)  x
 #define INT32_C(x)  x ## l
 
 #define UINT8_C(x)  x
 #define UINT16_C(x) x
+#define UINT24_C(x) x
 #define UINT32_C(x) x ## ul
 
 #endif /* __ARCH_Z80_INCLUDE_Z8_INTTYPES_H */
diff --git a/arch/z80/include/z80/inttypes.h b/arch/z80/include/z80/inttypes.h
index 52c2041..37495fd 100644
--- a/arch/z80/include/z80/inttypes.h
+++ b/arch/z80/include/z80/inttypes.h
@@ -112,10 +112,12 @@
 
 #define INT8_C(x)   x
 #define INT16_C(x)  x
+#define INT24_C(x)  x
 #define INT32_C(x)  x ## l
 
 #define UINT8_C(x)  x
 #define UINT16_C(x) x
+#define UINT24_C(x) x
 #define UINT32_C(x) x ## ul
 
 #endif /* __ARCH_Z80_INCLUDE_Z80_INTTYPES_H */

Reply via email to