?? dac.c
字號:
/**
* @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 + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -