RA Flexible Software Package Documentation
Release v5.6.0
|
|
Driver for the DRW peripheral on RA MCUs. This module is a port of D/AVE 2D.
Configuration | Options | Default | Description |
---|---|---|---|
Allow Indirect Mode |
| Enabled | Enable indirect mode to allow no-copy mode for d2_adddlist (see the TES Dave2D Driver Documentation for details). |
Memory Allocation |
| Default | Set Memory Allocation to Default to use built-in dynamic memory allocation for the D2 heap. This will use an RTOS heap if configured; otherwise, standard C malloc and free will be used. Set to Custom to define your own allocation scheme for the D2 heap. In this case, the developer will need to define the following functions: void * d1_malloc(size_t size) void d1_free(void * ptr) |
Configuration | Options | Default | Description |
---|---|---|---|
D2 Device Handle Name | Name must be a valid C symbol | d2_handle0 | Set the name for the d2_device handle used when calling D2 layer functions. |
DRW Interrupt Priority | MCU Specific Options | Select the DRW_INT (display list completion) interrupt priority. |
The D1 port layer allows the D2 driver to allocate memory as needed. There are three ways the driver can accomplish this:
When the "Memory Allocation" configuration option is set to "Default" the driver will use an RTOS implementation if available and the main heap otherwise. Setting the option to "Custom" allows the user to define their own scheme using the following prototypes:
The D1 port includes one interrupt to handle various events like display list completion or bus error. This interrupt is managed internally by the D2 driver and no callback function is available.
Developers should be aware of the following limitations when using the DRW engine:
d2_flushframe
before stopping the peripheral.