资源简介
用于STM8S的开发,官方固件库包,放这里有需要的可以下载看看
代码片段和文件信息
/**
******************************************************************************
* @file stm8s_adc1.c
* @author MCD Application Team
* @version V2.1.0
* @date 18-November-2011
* @brief This file contains all the functions/macros for the ADC1 peripheral.
******************************************************************************
* @attention
*
* THE PRESENT FIRMWARE WHICH IS FOR GUIDANCE ONLY AIMS AT PROVIDING CUSTOMERS
* WITH CODING INFORMATION REGARDING THEIR PRODUCTS IN ORDER FOR THEM TO SAVE
* TIME. AS A RESULT STMICROELECTRONICS SHALL NOT BE HELD LIABLE FOR ANY
* DIRECT INDIRECT OR CONSEQUENTIAL DAMAGES WITH RESPECT TO ANY CLAIMS ARISING
* FROM THE CONTENT OF SUCH FIRMWARE AND/OR THE USE MADE BY CUSTOMERS OF THE
* CODING INFORMATION CONTAINED HEREIN IN CONNECTION WITH THEIR PRODUCTS.
*
* © COPYRIGHT 2011 STMicroelectronics
******************************************************************************
*/
/* 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
* can be one of the values of @ref ADC1_PresSel_TypeDef.
* @param ADC1_ExtTrigger: specifies th
属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
目录 0 2018-11-08 13:47 STM8S_StdPeriph_Lib_V2.1.0\
目录 0 2018-11-08 13:47 STM8S_StdPeriph_Lib_V2.1.0\Libraries\
目录 0 2018-11-08 13:47 STM8S_StdPeriph_Lib_V2.1.0\Libraries\STM8S_StdPeriph_Driver\
文件 69834 2011-11-18 11:27 STM8S_StdPeriph_Lib_V2.1.0\Libraries\STM8S_StdPeriph_Driver\Release_Notes.html
目录 0 2018-11-08 13:47 STM8S_StdPeriph_Lib_V2.1.0\Libraries\STM8S_StdPeriph_Driver\inc\
文件 115801 2011-11-18 11:15 STM8S_StdPeriph_Lib_V2.1.0\Libraries\STM8S_StdPeriph_Driver\inc\stm8s.h
文件 15026 2011-11-18 11:15 STM8S_StdPeriph_Lib_V2.1.0\Libraries\STM8S_StdPeriph_Driver\inc\stm8s_adc1.h
文件 11473 2011-11-18 11:15 STM8S_StdPeriph_Lib_V2.1.0\Libraries\STM8S_StdPeriph_Driver\inc\stm8s_adc2.h
文件 4926 2011-11-18 11:15 STM8S_StdPeriph_Lib_V2.1.0\Libraries\STM8S_StdPeriph_Driver\inc\stm8s_awu.h
文件 3495 2011-11-18 11:15 STM8S_StdPeriph_Lib_V2.1.0\Libraries\STM8S_StdPeriph_Driver\inc\stm8s_beep.h
文件 25587 2011-11-18 11:15 STM8S_StdPeriph_Lib_V2.1.0\Libraries\STM8S_StdPeriph_Driver\inc\stm8s_can.h
文件 16968 2011-11-18 11:15 STM8S_StdPeriph_Lib_V2.1.0\Libraries\STM8S_StdPeriph_Driver\inc\stm8s_clk.h
文件 4625 2011-11-18 11:15 STM8S_StdPeriph_Lib_V2.1.0\Libraries\STM8S_StdPeriph_Driver\inc\stm8s_exti.h
文件 13814 2011-11-18 11:15 STM8S_StdPeriph_Lib_V2.1.0\Libraries\STM8S_StdPeriph_Driver\inc\stm8s_flash.h
文件 6270 2011-11-18 11:15 STM8S_StdPeriph_Lib_V2.1.0\Libraries\STM8S_StdPeriph_Driver\inc\stm8s_gpio.h
文件 27725 2011-11-18 11:15 STM8S_StdPeriph_Lib_V2.1.0\Libraries\STM8S_StdPeriph_Driver\inc\stm8s_i2c.h
文件 6766 2011-11-18 11:15 STM8S_StdPeriph_Lib_V2.1.0\Libraries\STM8S_StdPeriph_Driver\inc\stm8s_itc.h
文件 4307 2011-11-18 11:15 STM8S_StdPeriph_Lib_V2.1.0\Libraries\STM8S_StdPeriph_Driver\inc\stm8s_iwdg.h
文件 2834 2011-11-18 11:15 STM8S_StdPeriph_Lib_V2.1.0\Libraries\STM8S_StdPeriph_Driver\inc\stm8s_rst.h
文件 13062 2011-11-18 11:15 STM8S_StdPeriph_Lib_V2.1.0\Libraries\STM8S_StdPeriph_Driver\inc\stm8s_spi.h
文件 26735 2011-11-18 11:15 STM8S_StdPeriph_Lib_V2.1.0\Libraries\STM8S_StdPeriph_Driver\inc\stm8s_tim1.h
文件 14088 2011-11-18 11:15 STM8S_StdPeriph_Lib_V2.1.0\Libraries\STM8S_StdPeriph_Driver\inc\stm8s_tim2.h
文件 12917 2011-11-18 11:15 STM8S_StdPeriph_Lib_V2.1.0\Libraries\STM8S_StdPeriph_Driver\inc\stm8s_tim3.h
文件 5299 2011-11-18 11:15 STM8S_StdPeriph_Lib_V2.1.0\Libraries\STM8S_StdPeriph_Driver\inc\stm8s_tim4.h
文件 19890 2011-11-18 11:15 STM8S_StdPeriph_Lib_V2.1.0\Libraries\STM8S_StdPeriph_Driver\inc\stm8s_tim5.h
文件 9524 2011-11-18 11:15 STM8S_StdPeriph_Lib_V2.1.0\Libraries\STM8S_StdPeriph_Driver\inc\stm8s_tim6.h
文件 16529 2011-11-18 11:15 STM8S_StdPeriph_Lib_V2.1.0\Libraries\STM8S_StdPeriph_Driver\inc\stm8s_uart1.h
文件 19058 2011-11-18 11:15 STM8S_StdPeriph_Lib_V2.1.0\Libraries\STM8S_StdPeriph_Driver\inc\stm8s_uart2.h
文件 15311 2011-11-18 11:15 STM8S_StdPeriph_Lib_V2.1.0\Libraries\STM8S_StdPeriph_Driver\inc\stm8s_uart3.h
文件 2478 2011-11-18 11:15 STM8S_StdPeriph_Lib_V2.1.0\Libraries\STM8S_StdPeriph_Driver\inc\stm8s_wwdg.h
目录 0 2018-11-08 13:47 STM8S_StdPeriph_Lib_V2.1.0\Libraries\STM8S_StdPeriph_Driver\src\
............此处省略437个文件信息
相关资源
- stm8s ds18b20 温度传感器 IAR函数库源代
- STM8S固件库
- STM8S003 IAR环境库函数模拟串口
- STM8s003 IAR库函数定时器1输入捕获功能
- STM8S103F3封装库ddb(schpcb)
- sx1278+stm8s lora通信及信号强度提取
- 基于STM8S103F3P6的模拟串口程序
- STM8S207R8(DS18B20)源代码
- 基于STM8的OLED驱动
- stm8s105 数据手册
- stm8s_demo
- STM8s读取AM2303温湿度传感器MODBUS协议
- STM8S103F3例程资料
- stm8s触摸按键库2.5版本
- MODBUS STM8S
- stm8s最新库函数手册
- 采用STM8S的无刷直流电机控制系统的设
- stm8s官方例程
- stm8s系列中文参考手册
- STM8S003工程模版
- 基于STM8S103F3P6的超声波测距仪与温度
- STM8S003F代码
- iar stm8 1.301开发环境STM8S开发包亲测可
- STM8S PWM和蜂鸣器的实验代码
- STM8S输出PWM控制模拟舵机+MPU6050陀螺仪
- STM8S/L UFQFPN20 PCB封装
- STM8S软件开发指南
- IAR环境STM8S003模拟串口
- stm8s003f3p6点亮六个LED灯IAR工程包
- STM8S移植实时操作系统工程
评论
共有 条评论