dac.c

来自「DSP实现三相异步电机矢量控制的C语言算法」· C语言 代码 · 共 40 行

C
40
字号
/**
* @file dac.c
*
* Copyright (c) 2004 Atmel.
*
* @brief Ce fichier permet de
*
* This file is included by all source files in order to access to system wide
* configuration.
* @version 1.0 (CVS revision : $Revision: 1.1.1.1 $)
* @date $Date: 2005/09/21 15:08:53 $ (created on 06/04/2004)
* @author $Author: jberthy $ (created by Emmanuel David)

*****************************************************************************/

#include "config.h"
#include "inavr.h"
#include "lib_mcu/dac/dac_drv.h"

/****************************************************************************/
/*                       DAC Initialization                                 */
/****************************************************************************/
 /*!
 * This function initializes the DAC :
   *    - enable and run the DAC (DAC_init),
   *    - the DAC output is only used during debug
   *    - 10 bit resolution
   */


/****************************************************************************/

void DAC_Init(void) {
    Enable_dac();
    Right_adjust_dac_result();              //  10 bits resolution
    Output_dac_enable();
}

/****************************************************************************/

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?