Debian Codegraph @

lvgl/docs/src/integration/chip_vendors/arm/arm2d.rst

raw
1 .. _arm2d:
2
3 ==========
4 Arm-2D GPU
5 ==========
6
7 Arm-2D is not a GPU but **an abstraction layer for 2D GPUs dedicated to
8 Microcontrollers**. It supports all Cortex-M processors ranging from
9 Cortex-M0 to the latest Cortex-M85.
10
11 Arm-2D accelerates LVGL9 with two modes: **Synchronous Mode** and
12 **Asynchronous Mode**.
13
14 - When **Helium** and **ACI (Arm Custom Instruction)** are available, it is recommend
15 to use **Synchronous Mode** to accelerate LVGL.
16 - When Arm-2D backed 2D-GPUs are available, for example, **DMAC-350 based 2D
17 GPUs**, it is recommend to use **Asynchronous Mode** to accelerate LVGL.
18
19 Arm-2D is an open-source project on GitHub. For more, please refer to:
20 https://github.com/ARM-software/Arm-2D.
21
22
23 How to Use
24 **********
25
26 In general:
27
28 - you can set the macro :c:macro:`LV_USE_DRAW_ARM2D_SYNC` to ``1`` and
29 :c:macro:`LV_DRAW_SW_ASM` to :c:macro:`LV_DRAW_SW_ASM_HELIUM` in ``lv_conf.h`` to
30 enable Arm-2D synchronous acceleration for LVGL.
31 - You can set
32 the macro :c:macro:`LV_USE_DRAW_ARM2D_ASYNC` to ``1`` in ``lv_conf.h`` to enable
33 Arm-2D Asynchronous acceleration for LVGL.
34
35 If you are using
36 `CMSIS-Pack <https://github.com/lvgl/lvgl/tree/master/env_support/cmsis-pack>`__
37 to deploy the LVGL. You don't have to define the macro
38 :c:macro:`LV_USE_DRAW_ARM2D_SYNC` manually, instead the lv_conf_cmsis.h will
39 check the environment and set the :c:macro:`LV_USE_DRAW_ARM2D_SYNC` accordingly.
40
41 Design Considerations
42 *********************
43
44 As mentioned before, Arm-2D is an abstraction layer for 2D GPU; hence if
45 there is no accelerator or dedicated instruction set (such as Helium or
46 ACI) available for Arm-2D, it provides negligible performance boost for
47 LVGL (sometimes worse) for regular Cortex-M processors.
48
49 **We highly recommend you enable Arm-2D acceleration for LVGL** when:
50
51 - The target processors are **Cortex-M55**, **Cortex-M52** and **Cortex-M85**
52 - The target processors support
53 `Helium <https://developer.arm.com/documentation/102102/0103/?lang=en>`__.
54 - The device vendor provides an arm-2d compliant driver for their
55 proprietary 2D accelerators and/or ACI (Arm Customized Instruction).
56 - The target device contains
57 `DMAC-350 <https://community.arm.com/arm-community-blogs/b/internet-of-things-blog/posts/arm-corelink-dma-350-next-generation-direct-memory-access-for-endpoint-ai>`__
58
59 Examples
60 ********
61
62 - `A Cortex-M55 (supports Helium) based MDK Project, PC emulation is
63 available. <https://github.com/lvgl/lv_port_an547_cm55_sim>`__
64
65 API
66 ***
67
68 .. API equals: lv_draw_sw_image_recolor_rgb888
69
70 .. API equals: lv_rgb888_blend_normal_to_rgb565_arm2d
71