DMA library for the KL25Z

Dependents:   SimpleDMA_HelloWorld RTOS_SPI spiDMAtest Pinscape_Controller_v1 ... more

Introduction

SimpleDMA is a standard library for different DMA peripherals. Currently the LPC1768, KL46Z and KL25Z are supported. It provided one set of functions for different peripherals. It does not allow for usage of all the advanced functions, partially because the goal was to provide a simple interface, and partially because they are different for different microcontrollers.

Examples

Helloworld: http://mbed.org/users/Sissors/code/SimpleDMA_HelloWorld/

Example in a library (SPI): http://mbed.org/users/Sissors/code/RTOS_SPI/

Committer:
Sissors
Date:
Fri Oct 18 07:44:42 2013 +0000
Revision:
0:d77ea45fa625
Child:
3:34f5bf8adfa0
v0.1, KL25, no interrupt

Who changed what in which revision?

UserRevisionLine numberNew contents of line
Sissors 0:d77ea45fa625 1 #ifdef TARGET_KL25Z
Sissors 0:d77ea45fa625 2
Sissors 0:d77ea45fa625 3 enum SimpleDMA_Trigger {
Sissors 0:d77ea45fa625 4 Trigger_ALWAYS = 60,
Sissors 0:d77ea45fa625 5 Trigger_UART0_RX = 2,
Sissors 0:d77ea45fa625 6 Trigger_UART0_TX,
Sissors 0:d77ea45fa625 7 Trigger_UART1_RX,
Sissors 0:d77ea45fa625 8 Trigger_UART1_TX,
Sissors 0:d77ea45fa625 9 Trigger_UART2_RX,
Sissors 0:d77ea45fa625 10 Trigger_UART2_TX,
Sissors 0:d77ea45fa625 11 Trigger_SPI0_RX = 16,
Sissors 0:d77ea45fa625 12 Trigger_SPI0_TX,
Sissors 0:d77ea45fa625 13 Trigger_SPI1_RX,
Sissors 0:d77ea45fa625 14 Trigger_SPI1_TX,
Sissors 0:d77ea45fa625 15 Trigger_I2C0 = 22,
Sissors 0:d77ea45fa625 16 Trigger_I2C1,
Sissors 0:d77ea45fa625 17 Trigger_TPM0_C0,
Sissors 0:d77ea45fa625 18 Trigger_TPM0_C1,
Sissors 0:d77ea45fa625 19 Trigger_TPM0_C2,
Sissors 0:d77ea45fa625 20 Trigger_TPM0_C3,
Sissors 0:d77ea45fa625 21 Trigger_TPM0_C4,
Sissors 0:d77ea45fa625 22 Trigger_TPM0_C5,
Sissors 0:d77ea45fa625 23 Trigger_TPM1_C0 = 32,
Sissors 0:d77ea45fa625 24 Trigger_TPM1_C1,
Sissors 0:d77ea45fa625 25 Trigger_TPM2_C0,
Sissors 0:d77ea45fa625 26 Trigger_TPM2_C1,
Sissors 0:d77ea45fa625 27 Trigger_ADC0 = 40,
Sissors 0:d77ea45fa625 28 Trigger_CMP0 = 42,
Sissors 0:d77ea45fa625 29 Trigger_DAC0 = 45,
Sissors 0:d77ea45fa625 30 Trigger_PORTA = 49,
Sissors 0:d77ea45fa625 31 Trigger_PORTD = 52,
Sissors 0:d77ea45fa625 32 Trigger_TPM0 = 54,
Sissors 0:d77ea45fa625 33 Trigger_TPM1,
Sissors 0:d77ea45fa625 34 Trigger_TPM2,
Sissors 0:d77ea45fa625 35 Trigger_TSI,
Sissors 0:d77ea45fa625 36 Trigger_ALWAYS0 = 60,
Sissors 0:d77ea45fa625 37 Trigger_ALWAYS1,
Sissors 0:d77ea45fa625 38 Trigger_ALWAYS2,
Sissors 0:d77ea45fa625 39 Trigger_ALWAYS3,
Sissors 0:d77ea45fa625 40 };
Sissors 0:d77ea45fa625 41
Sissors 0:d77ea45fa625 42 #endif