/*
 * Copyright 2020-2026 Yuntu Microelectronics Co., Ltd.
 * All rights reserved.
 *
 * SPDX-License-Identifier: BSD-3-Clause
 * 
 * @file adc_config.c
 * @brief 
 * 
 */


#include "adc_config.h"



/* adc_config0 */
const adc_converter_config_t adc_config0={
    .clockDivider=0,
    .startTime=32,
    .sampleTime=10,
    .overrunMode=false,
    .autoOffEnable=false,
    .waitEnable=false,
    .trigger=ADC_TRIGGER_SOFTWARE,
    .align=ADC_ALIGN_RIGHT,
    .resolution=ADC_RESOLUTION_12BIT,
    .dmaWaterMark=0,
    .dmaEnable=false,
    .sequenceConfig={
        .sequenceMode=ADC_CONV_CONTINUOUS,
        .sequenceIntEnable=false,
        .convIntEnable=false,
        .readyIntEnable=false,
        .ovrunIntEnable=false,
        .sampIntEnable=false,
        .channels={
            ADC_INPUTCHAN_EXT0,
        },
        .totalChannels=1,
    },
    .compIntEnable=true,  
    .compareConfig={
        .compareEnable=true,
        .compareAllChannelEnable=false,
        .compChalSel=ADC_INPUTCHAN_EXT0,
        .compHigh=3276,
        .compLow=2048,
        .effectiveMode=ADC_AWG_EFFECTIVE_OUTSIDE,
    },
};


