Example Configuration Used in this Application

The following sequence is a basic example to scroll the string “HELLO WORLD ” by using the ACM scrolling mode in Segment LCD1 Xplained Pro LCD glass.

Buffers used :

/* DMA buffer length */
#define BUFFER_LEN 30
/* DMA resource and descriptor */
struct dma_resource example_resource;

DmacDescriptor example_descriptor;

static char user_scrolling_str[BUFFER_LEN] = {"HELLO WORLD     "};
static volatile uint32_t dma_source_buf[BUFFER_LEN];

static volatile bool transfer_is_done = false;
static volatile uint32_t dma_break = 0, dma_block_count = 0;