资源简介
基于TivaWare的TM4C123G的工程模板,是keil版的,直接可以编译运行
代码片段和文件信息
//*****************************************************************************
//
// adc.c - Driver for the ADC.
//
// Copyright (c) 2005-2013 Texas Instruments Incorporated. All rights reserved.
// Software License Agreement
//
// Redistribution and use in source and binary forms with or without
// modification are permitted provided that the following conditions
// are met:
//
// Redistributions of source code must retain the above copyright
// notice this list of conditions and the following disclaimer.
//
// Redistributions in binary form must reproduce the above copyright
// notice this list of conditions and the following disclaimer in the
// documentation and/or other materials provided with the
// distribution.
//
// Neither the name of Texas Instruments Incorporated nor the names of
// its contributors may be used to endorse or promote products derived
// from this software without specific prior written permission.
//
// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
// “AS IS“ AND ANY EXPRESS OR IMPLIED WARRANTIES INCLUDING BUT NOT
// LIMITED TO THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
// A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
// OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT INDIRECT INCIDENTAL
// SPECIAL EXEMPLARY OR CONSEQUENTIAL DAMAGES (INCLUDING BUT NOT
// LIMITED TO PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE
// DATA OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
// THEORY OF LIABILITY WHETHER IN CONTRACT STRICT LIABILITY OR TORT
// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
// OF THIS SOFTWARE EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
//
// This is part of revision 2.0.1.11577 of the Tiva Peripheral Driver Library.
//
//*****************************************************************************
//*****************************************************************************
//
//! \addtogroup adc_api
//! @{
//
//*****************************************************************************
#include
#include
#include “inc/hw_adc.h“
#include “inc/hw_ints.h“
#include “inc/hw_memmap.h“
#include “inc/hw_types.h“
#include “inc/hw_sysctl.h“
#include “driverlib/adc.h“
#include “driverlib/debug.h“
#include “driverlib/interrupt.h“
//*****************************************************************************
//
// These defines are used by the ADC driver to simplify access to the ADC
// sequencer‘s registers.
//
//*****************************************************************************
#define ADC_SEQ (ADC_O_SSMUX0)
#define ADC_SEQ_STEP (ADC_O_SSMUX1 - ADC_O_SSMUX0)
#define ADC_SSMUX (ADC_O_SSMUX0 - ADC_O_SSMUX0)
#define ADC_SSEMUX (ADC_O_SSEMUX0 - ADC_O_SSMUX0)
#define ADC_SSCTL (ADC_O_SS
属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
目录 0 2019-03-05 14:52 工程模板\
目录 0 2019-03-05 14:52 工程模板\Doc\
文件 1264 2016-07-17 16:33 工程模板\Doc\readme.txt
目录 0 2019-03-05 14:52 工程模板\Libraries\
目录 0 2019-03-05 14:52 工程模板\Libraries\driverlib\
文件 4098 2016-07-17 16:33 工程模板\Libraries\driverlib\Makefile
文件 67583 2016-07-17 16:33 工程模板\Libraries\driverlib\adc.c
文件 16073 2016-07-17 16:33 工程模板\Libraries\driverlib\adc.h
文件 45682 2016-07-17 16:33 工程模板\Libraries\driverlib\aes.c
文件 10153 2016-07-17 16:33 工程模板\Libraries\driverlib\aes.h
文件 71664 2016-07-17 16:33 工程模板\Libraries\driverlib\can.c
文件 14345 2016-07-17 16:33 工程模板\Libraries\driverlib\can.h
目录 0 2019-03-05 14:52 工程模板\Libraries\driverlib\ccs\
文件 294 2016-07-17 16:33 工程模板\Libraries\driverlib\ccs\.ccsproject
文件 18286 2016-07-17 16:33 工程模板\Libraries\driverlib\ccs\.cproject
文件 4912 2016-07-17 16:33 工程模板\Libraries\driverlib\ccs\.project
目录 0 2019-03-05 14:52 工程模板\Libraries\driverlib\ccs\.settings\
文件 62 2016-07-17 16:33 工程模板\Libraries\driverlib\ccs\.settings\org.eclipse.cdt.codan.core.prefs
目录 0 2019-03-05 14:52 工程模板\Libraries\driverlib\ccs\Debug\
文件 2088800 2016-07-17 16:33 工程模板\Libraries\driverlib\ccs\Debug\driverlib.lib
文件 17 2016-07-17 16:33 工程模板\Libraries\driverlib\ccs\macros.ini_initial
文件 16310 2016-07-17 16:33 工程模板\Libraries\driverlib\comp.c
文件 7766 2016-07-17 16:33 工程模板\Libraries\driverlib\comp.h
文件 12366 2016-07-17 16:33 工程模板\Libraries\driverlib\cpu.c
文件 3087 2016-07-17 16:33 工程模板\Libraries\driverlib\cpu.h
文件 10786 2016-07-17 16:33 工程模板\Libraries\driverlib\crc.c
文件 4679 2016-07-17 16:33 工程模板\Libraries\driverlib\crc.h
文件 3415 2016-07-17 16:33 工程模板\Libraries\driverlib\debug.h
文件 25512 2016-07-17 16:33 工程模板\Libraries\driverlib\des.c
文件 6352 2016-07-17 16:33 工程模板\Libraries\driverlib\des.h
文件 22651 2016-07-17 16:33 工程模板\Libraries\driverlib\driverlib.ewp
............此处省略180个文件信息
- 上一篇:河北科技大学计算机组成原理试卷及答案
- 下一篇:geant4 advanced 讲解
评论
共有 条评论