Searched refs:dmachannel (Results 1 – 2 of 2) sorted by relevance
76 void tls_adc_init(u8 ifusedma, u8 dmachannel) in tls_adc_init() argument83 …gst_adc.dmachannel = tls_dma_request(dmachannel, TLS_DMA_FLAGS_CHANNEL_SEL(TLS_DMA_SEL_SDADC_CH0 +… in tls_adc_init()85 if (gst_adc.dmachannel != 0xFF) { in tls_adc_init()86 tls_dma_irq_register(gst_adc.dmachannel, (void(*)(void*))adc_dma_isr_callbk, in tls_adc_init()103 tls_dma_irq_clr(gst_adc.dmachannel, TLS_DMA_IRQ_TRANSFER_DONE); in tls_adc_clear_irq()185 while (DMA_CHNLCTRL_REG(gst_adc.dmachannel) & 1) { in tls_adc_start_with_dma()186 DMA_CHNLCTRL_REG(gst_adc.dmachannel) = 2; // 2:byte alignment in tls_adc_start_with_dma()189 DMA_SRCADDR_REG(gst_adc.dmachannel) = HR_SD_ADC_RESULT_REG; in tls_adc_start_with_dma()190 DMA_DESTADDR_REG(gst_adc.dmachannel) = adc_dma_buffer; in tls_adc_start_with_dma()191 DMA_SRCWRAPADDR_REG(gst_adc.dmachannel) = HR_SD_ADC_RESULT_REG; in tls_adc_start_with_dma()[all …]
123 u8 dmachannel; member161 void tls_adc_init(u8 ifusedma, u8 dmachannel);