drv_dc.h 836 B

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. /*
  2. * Copyright (c) 2006-2021, RT-Thread Development Team
  3. *
  4. * SPDX-License-Identifier: Apache-2.0
  5. *
  6. * Email: opensource_embedded@phytium.com.cn
  7. *
  8. * Change Logs:
  9. * Date Author Notes
  10. * 2023-11-7 wangzongqiang first version
  11. *
  12. */
  13. #ifndef __DRV_DC_H__
  14. #define __DRV_DC_H__
  15. #include <rtdevice.h>
  16. #include "fdcdp.h"
  17. #ifdef __cplusplus
  18. extern "C"
  19. {
  20. #endif
  21. #define FB_XSIZE 1024
  22. #define FB_YSIZE 768
  23. #define DISPLAY_COLOR_DEPTH 32
  24. #define DISPLAY_REFRESH_RATE_60 60
  25. #define DISPLAY_REFRESH_RATE_59 59
  26. #define DISPLAY_REFRESH_RATE_40 40
  27. #define DISPLAY_REFRESH_RATE_30 30
  28. int rt_hw_dc_init(void);
  29. struct phytium_dc_bus
  30. {
  31. struct rt_device parent;
  32. FDcDp dc_handle;/* data */
  33. const char *name;
  34. rt_uint32_t fdc_id;
  35. };
  36. #ifdef __cplusplus
  37. }
  38. #endif
  39. #endif /* __DRV_DC_H__ */