/* Config DMA to make peripheral-to-memory transfer scrolling string to SLCD memory.  */
static void configure_dma(void)
/* Config DMA to make peripheral-to-memory transfer scrolling string to SLCD memory.  */
static void configure_dma(void)
{
	configure_dma_resource(&example_resource);
	setup_transfer_descriptor(&example_descriptor);
	if (STATUS_OK != dma_add_descriptor(&example_resource,
			&example_descriptor)) {
		printf("Descriptor status error\n\n\r");
	}
	dma_register_callback(&example_resource, dma_callback,
			DMA_CALLBACK_TRANSFER_DONE);
	dma_enable_callback(&example_resource, DMA_CALLBACK_TRANSFER_DONE);
}