资源简介
STM8S_StdPeriph_Lib_V2.3.1.rar 官网的标准库,不会在官网下载的可以下这个。
代码片段和文件信息
/**
******************************************************************************
* @file stm8s_adc1.c
* @author MCD Application Team
* @version V2.3.0
* @date 16-June-2017
* @brief This file contains all the functions/macros for the ADC1 peripheral.
******************************************************************************
* @attention
*
* © COPYRIGHT 2014 STMicroelectronics
*
* Licensed under MCD-ST Liberty SW License Agreement V2 (the “License“);
* You may not use this file except in compliance with the License.
* You may obtain a copy of the License at:
*
* http://www.st.com/software_license_agreement_liberty_v2
*
* Unless required by applicable law or agreed to in writing software
* distributed under the License is distributed on an “AS IS“ BASIS
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*
******************************************************************************
*/
/* Includes ------------------------------------------------------------------*/
#include “stm8s_adc1.h“
/** @addtogroup STM8S_StdPeriph_Driver
* @{
*/
/* Private typedef -----------------------------------------------------------*/
/* Private define ------------------------------------------------------------*/
/* Private macro -------------------------------------------------------------*/
/* Private variables ---------------------------------------------------------*/
/* Private function prototypes -----------------------------------------------*/
/* Private functions ---------------------------------------------------------*/
/* Public functions ----------------------------------------------------------*/
/**
* @addtogroup ADC1_Public_Functions
* @{
*/
/**
* @brief Deinitializes the ADC1 peripheral registers to their default reset values.
* @param None
* @retval None
*/
void ADC1_DeInit(void)
{
ADC1->CSR = ADC1_CSR_RESET_VALUE;
ADC1->CR1 = ADC1_CR1_RESET_VALUE;
ADC1->CR2 = ADC1_CR2_RESET_VALUE;
ADC1->CR3 = ADC1_CR3_RESET_VALUE;
ADC1->TDRH = ADC1_TDRH_RESET_VALUE;
ADC1->TDRL = ADC1_TDRL_RESET_VALUE;
ADC1->HTRH = ADC1_HTRH_RESET_VALUE;
ADC1->HTRL = ADC1_HTRL_RESET_VALUE;
ADC1->LTRH = ADC1_LTRH_RESET_VALUE;
ADC1->LTRL = ADC1_LTRL_RESET_VALUE;
ADC1->AWCRH = ADC1_AWCRH_RESET_VALUE;
ADC1->AWCRL = ADC1_AWCRL_RESET_VALUE;
}
/**
* @brief Initializes the ADC1 peripheral according to the specified parameters
* @param ADC1_ConversionMode: specifies the conversion mode
* can be one of the values of @ref ADC1_ConvMode_TypeDef.
* @param ADC1_Channel: specifies the channel to convert
* can be one of the values of @ref ADC1_Channel_TypeDef.
* @param ADC1_PrescalerSelection: specifies the ADC1 prescaler
*
属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
文件 122374 2018-04-27 10:56 STM8S_StdPeriph_Lib_V2.3.1\Libraries\STM8S_StdPeriph_Driver\inc\stm8s.h
文件 15160 2018-04-27 10:56 STM8S_StdPeriph_Lib_V2.3.1\Libraries\STM8S_StdPeriph_Driver\inc\stm8s_adc1.h
文件 11606 2018-04-27 10:56 STM8S_StdPeriph_Lib_V2.3.1\Libraries\STM8S_StdPeriph_Driver\inc\stm8s_adc2.h
文件 5060 2018-04-27 10:56 STM8S_StdPeriph_Lib_V2.3.1\Libraries\STM8S_StdPeriph_Driver\inc\stm8s_awu.h
文件 3629 2018-04-27 10:56 STM8S_StdPeriph_Lib_V2.3.1\Libraries\STM8S_StdPeriph_Driver\inc\stm8s_beep.h
文件 25725 2018-04-27 10:56 STM8S_StdPeriph_Lib_V2.3.1\Libraries\STM8S_StdPeriph_Driver\inc\stm8s_can.h
文件 17100 2018-04-27 10:56 STM8S_StdPeriph_Lib_V2.3.1\Libraries\STM8S_StdPeriph_Driver\inc\stm8s_clk.h
文件 4753 2018-04-27 10:56 STM8S_StdPeriph_Lib_V2.3.1\Libraries\STM8S_StdPeriph_Driver\inc\stm8s_exti.h
文件 14052 2018-04-27 10:56 STM8S_StdPeriph_Lib_V2.3.1\Libraries\STM8S_StdPeriph_Driver\inc\stm8s_flash.h
文件 6404 2018-04-27 10:56 STM8S_StdPeriph_Lib_V2.3.1\Libraries\STM8S_StdPeriph_Driver\inc\stm8s_gpio.h
文件 27862 2018-04-27 10:56 STM8S_StdPeriph_Lib_V2.3.1\Libraries\STM8S_StdPeriph_Driver\inc\stm8s_i2c.h
文件 7638 2018-04-27 10:56 STM8S_StdPeriph_Lib_V2.3.1\Libraries\STM8S_StdPeriph_Driver\inc\stm8s_itc.h
文件 4442 2018-04-27 10:56 STM8S_StdPeriph_Lib_V2.3.1\Libraries\STM8S_StdPeriph_Driver\inc\stm8s_iwdg.h
文件 2968 2018-04-27 10:56 STM8S_StdPeriph_Lib_V2.3.1\Libraries\STM8S_StdPeriph_Driver\inc\stm8s_rst.h
文件 13196 2018-04-27 10:56 STM8S_StdPeriph_Lib_V2.3.1\Libraries\STM8S_StdPeriph_Driver\inc\stm8s_spi.h
文件 26869 2018-04-27 10:56 STM8S_StdPeriph_Lib_V2.3.1\Libraries\STM8S_StdPeriph_Driver\inc\stm8s_tim1.h
文件 14197 2018-04-27 10:56 STM8S_StdPeriph_Lib_V2.3.1\Libraries\STM8S_StdPeriph_Driver\inc\stm8s_tim2.h
文件 13051 2018-04-27 10:56 STM8S_StdPeriph_Lib_V2.3.1\Libraries\STM8S_StdPeriph_Driver\inc\stm8s_tim3.h
文件 5433 2018-04-27 10:56 STM8S_StdPeriph_Lib_V2.3.1\Libraries\STM8S_StdPeriph_Driver\inc\stm8s_tim4.h
文件 19999 2018-04-27 10:56 STM8S_StdPeriph_Lib_V2.3.1\Libraries\STM8S_StdPeriph_Driver\inc\stm8s_tim5.h
文件 9659 2018-04-27 10:56 STM8S_StdPeriph_Lib_V2.3.1\Libraries\STM8S_StdPeriph_Driver\inc\stm8s_tim6.h
文件 16662 2018-04-27 10:56 STM8S_StdPeriph_Lib_V2.3.1\Libraries\STM8S_StdPeriph_Driver\inc\stm8s_uart1.h
文件 19189 2018-04-27 10:56 STM8S_StdPeriph_Lib_V2.3.1\Libraries\STM8S_StdPeriph_Driver\inc\stm8s_uart2.h
文件 15442 2018-04-27 10:56 STM8S_StdPeriph_Lib_V2.3.1\Libraries\STM8S_StdPeriph_Driver\inc\stm8s_uart3.h
文件 19182 2018-04-27 10:56 STM8S_StdPeriph_Lib_V2.3.1\Libraries\STM8S_StdPeriph_Driver\inc\stm8s_uart4.h
文件 2612 2018-04-27 10:56 STM8S_StdPeriph_Lib_V2.3.1\Libraries\STM8S_StdPeriph_Driver\inc\stm8s_wwdg.h
文件 78441 2018-04-27 10:56 STM8S_StdPeriph_Lib_V2.3.1\Libraries\STM8S_StdPeriph_Driver\Release_Notes.html
文件 22694 2018-04-27 10:56 STM8S_StdPeriph_Lib_V2.3.1\Libraries\STM8S_StdPeriph_Driver\src\stm8s_adc1.c
文件 13399 2018-04-27 10:56 STM8S_StdPeriph_Lib_V2.3.1\Libraries\STM8S_StdPeriph_Driver\src\stm8s_adc2.c
文件 6402 2018-04-27 10:56 STM8S_StdPeriph_Lib_V2.3.1\Libraries\STM8S_StdPeriph_Driver\src\stm8s_awu.c
............此处省略387个文件信息
- 上一篇:张澄波的综合孔径雷达
- 下一篇:赚客吧小哆版
相关资源
- STM8 模拟串口 IO口模拟
- stm8s003f3最小系统原理图
- 智能车载空气净化器的完整设计
- STM8S003F3-数据手册
- stm8 红外收发
- STM8S103中文数据手册
- 基于stm8s103f3p6的NRF24L01收发模块资料电
- STM8S的固件库V2.1.0
- STM8程序IAR环境
- 普通IO口模拟spi,stm8程序
- STM8L标准库,包含10x和15x两个系列,解
- stm8l使用AD测量内部温度 库函数版本工
- STM8L101官方例程
- STM8L标准库函数库c
-
STM8 ST-li
nk驱动 - STM8L15例程
- STM8官方老版本电机库
- stm8s ds18b20 温度传感器 IAR函数库源代
- stm8固件库函数使用手册
- 调试OK的stm8+rc522原理图和源代码
- CC1101IARForSTM8源码
- STM8芯片S系列的完整固件库
- STM8S固件库
- STM8单片机3通道ADC数据采集及串口波形
- STM8S003 IAR环境库函数模拟串口
- STM8s003 IAR库函数定时器1输入捕获功能
- STM8S103F3封装库ddb(schpcb)
- sx1278+stm8s lora通信及信号强度提取
- stm8+SHTC3.zip
- 基于STM8S103F3P6的模拟串口程序
评论
共有 条评论