An I/O controller for virtual pinball machines: accelerometer nudge sensing, analog plunger input, button input encoding, LedWiz compatible output controls, and more.

Dependencies:   mbed FastIO FastPWM USBDevice

Fork of Pinscape_Controller by Mike R

Embed: (wiki syntax)

« Back to documentation index

Show/hide line numbers SimpleDMA_KL46.h Source File

SimpleDMA_KL46.h

00001 #if defined TARGET_KL46Z
00002 
00003 #define DMA_CHANNELS        4
00004 #define DMA_IRQS            4
00005 
00006 enum SimpleDMA_Trigger {
00007     Trigger_ALWAYS = 60,
00008     Trigger_UART0_RX = 2,
00009     Trigger_UART0_TX,
00010     Trigger_UART1_RX,
00011     Trigger_UART1_TX,
00012     Trigger_UART2_RX,
00013     Trigger_UART2_TX,
00014     Trigger_I2S0_RX = 14,
00015     Trigger_I2S0_TX,
00016     Trigger_SPI0_RX = 16,
00017     Trigger_SPI0_TX,
00018     Trigger_SPI1_RX,
00019     Trigger_SPI1_TX,
00020     Trigger_I2C0 = 22,
00021     Trigger_I2C1,
00022     Trigger_TPM0_C0,
00023     Trigger_TPM0_C1,
00024     Trigger_TPM0_C2,
00025     Trigger_TPM0_C3,
00026     Trigger_TPM0_C4,
00027     Trigger_TPM0_C5,
00028     Trigger_TPM1_C0 = 32,
00029     Trigger_TPM1_C1,
00030     Trigger_TPM2_C0,
00031     Trigger_TPM2_C1,
00032     Trigger_ADC0 = 40,
00033     Trigger_CMP0 = 42,
00034     Trigger_DAC0 = 45,
00035     Trigger_PORTA = 49,
00036     Trigegr_PORTC = 51,
00037     Trigger_PORTD = 52,
00038     Trigger_TPM0 = 54,
00039     Trigger_TPM1,
00040     Trigger_TPM2,
00041     Trigger_TSI,
00042     Trigger_ALWAYS0 = 60,
00043     Trigger_ALWAYS1,
00044     Trigger_ALWAYS2,
00045     Trigger_ALWAYS3,
00046 };    
00047 
00048 #endif