Lines Matching full:adc0
31 * 2. adc0 and adc1 share the same irq number.
32 * 3. For gd32f4xx, adc2 share the same irq number with adc0 and adc1.
34 * To cover this cases, gd32_adc driver use node-label 'adc0', 'adc1' and
37 * @note Sorry for the restriction, But new added gd32 adc node-label must be 'adc0',
40 #define ADC0_NODE DT_NODELABEL(adc0)
48 #ifndef ADC0
61 #define ADC_STAT(adc0) REG32((adc0) + 0x00000000U) argument
62 #define ADC_CTL0(adc0) REG32((adc0) + 0x00000004U) argument
63 #define ADC_CTL1(adc0) REG32((adc0) + 0x00000008U) argument
64 #define ADC_SAMPT0(adc0) REG32((adc0) + 0x0000000CU) argument
65 #define ADC_SAMPT1(adc0) REG32((adc0) + 0x00000010U) argument
66 #define ADC_RSQ2(adc0) REG32((adc0) + 0x00000034U) argument
67 #define ADC_RDATA(adc0) REG32((adc0) + 0x0000004CU) argument
448 /* Shared irq config default to adc0. */ in adc_gd32_global_irq_cfg()
466 /* gd32f4xx adc2 share the same irq number with adc0 and adc1. */ in adc_gd32_global_irq_cfg()