diff --git a/include/rtdef.h b/include/rtdef.h index cf3b42424c6f834ebdbdfe175ba437376960f765..498baaf5b909a2486bcb034d3f7373ee430fdc13 100644 --- a/include/rtdef.h +++ b/include/rtdef.h @@ -17,6 +17,7 @@ * 2012-11-16 Bernard change RT_NULL from ((void*)0) to 0. * 2012-12-29 Bernard change the RT_USING_MEMPOOL location and add * RT_USING_MEMHEAP condition. + * 2012-12-30 Bernard add more control command for graphic. */ #ifndef __RT_DEF_H__ @@ -759,6 +760,12 @@ struct rt_device_blk_sectors rt_uint32_t sector_end; /**< end sector */ }; +/** + * cursor control command + */ +#define RT_DEVICE_CTRL_CURSOR_SET_POSITION 0x10 +#define RT_DEVICE_CTRL_CURSOR_SET_TYPE 0x11 + /** * graphic device control command */ @@ -767,8 +774,7 @@ struct rt_device_blk_sectors #define RTGRAPHIC_CTRL_POWEROFF 2 #define RTGRAPHIC_CTRL_GET_INFO 3 #define RTGRAPHIC_CTRL_SET_MODE 4 -#define RTGRAPHIC_CTRL_FILL_RECT 5 -#define RTGRAPHIC_CTRL_DRAW_RECT 6 +#define RTGRAPHIC_CTRL_GET_EXT 5 /* graphic deice */ enum