summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorMeco Jianting Man <[email protected]>2021-03-14 12:30:42 +0800
committerGitHub <[email protected]>2021-03-14 12:30:42 +0800
commitc3ffe18688a3696a486855ae98002714546bd836 (patch)
tree5636e6cd556bae6e052846080184182f487ca7b3 /include
parent849c99d2fa8aff996cf0a54a88e67a47ed52999e (diff)
parentca867e8c0620af7e48f4bfa6ea82d4e271b5ce4a (diff)
Merge pull request #27 from RT-Thread/master
pr
Diffstat (limited to 'include')
-rw-r--r--include/rtdbg.h2
-rw-r--r--include/rtdef.h10
2 files changed, 8 insertions, 4 deletions
diff --git a/include/rtdbg.h b/include/rtdbg.h
index c0a4e68222..6a6ea3d670 100644
--- a/include/rtdbg.h
+++ b/include/rtdbg.h
@@ -178,6 +178,8 @@ extern "C" {
#define LOG_RAW(...) dbg_raw(__VA_ARGS__)
+#define LOG_HEX(name, width, buf, size)
+
#endif /* defined(RT_USING_ULOG) && define(DBG_ENABLE) */
#ifdef __cplusplus
diff --git a/include/rtdef.h b/include/rtdef.h
index a0d964bcb5..f5a09f815b 100644
--- a/include/rtdef.h
+++ b/include/rtdef.h
@@ -1044,6 +1044,10 @@ struct rt_device_blk_sectors
#define RTGRAPHIC_CTRL_GET_INFO 3
#define RTGRAPHIC_CTRL_SET_MODE 4
#define RTGRAPHIC_CTRL_GET_EXT 5
+#define RTGRAPHIC_CTRL_SET_BRIGHTNESS 6
+#define RTGRAPHIC_CTRL_GET_BRIGHTNESS 7
+#define RTGRAPHIC_CTRL_GET_MODE 8
+#define RTGRAPHIC_CTRL_GET_STATUS 9
/* graphic deice */
enum
@@ -1060,9 +1064,7 @@ enum
RTGRAPHIC_PIXEL_FORMAT_RGB888,
RTGRAPHIC_PIXEL_FORMAT_ARGB888,
RTGRAPHIC_PIXEL_FORMAT_ABGR888,
- RTGRAPHIC_PIXEL_FORMAT_ARGB565,
- RTGRAPHIC_PIXEL_FORMAT_ALPHA,
- RTGRAPHIC_PIXEL_FORMAT_COLOR,
+ RTGRAPHIC_PIXEL_FORMAT_RESERVED,
};
/**
@@ -1077,7 +1079,7 @@ struct rt_device_graphic_info
{
rt_uint8_t pixel_format; /**< graphic format */
rt_uint8_t bits_per_pixel; /**< bits per pixel */
- rt_uint16_t reserved; /**< reserved field */
+ rt_uint16_t pitch; /**< bytes per line */
rt_uint16_t width; /**< width of graphic device */
rt_uint16_t height; /**< height of graphic device */