资源简介
STM8s官方固件库
/* #define STM8S208 */ /*!< STM8S High density devices with CAN */
/* #define STM8S207 */ /*!< STM8S High density devices without CAN */
/* #define STM8S007 */ /*!< STM8S Value Line High density devices */
/* #define STM8AF52Ax */ /*!< STM8A High density devices with CAN */
/* #define STM8AF62Ax */ /*!< STM8A High density devices without CAN */
/* #define STM8S105 */ /*!< STM8S Medium density devices */
/* #define STM8S005 */ /*!< STM8S Value Line Medium density devices */
/* #define STM8AF626x */ /*!< STM8A Medium density devices */
/* #define STM8S103 */ /*!< STM8S Low density devices */
#define STM8S003 /*!< STM8S Value Line Low density devices *///配置库文件
代码片段和文件信息
/**
******************************************************************************
* @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 2011-11-18 12:35 STM8S_StdPeriph_Lib_V2.1.0\_htmresc\
文件 6798 2009-11-03 11:41 STM8S_StdPeriph_Lib_V2.1.0\_htmresc\logo.bmp
目录 0 2011-11-18 12:34 STM8S_StdPeriph_Lib_V2.1.0\Libraries\
目录 0 2011-11-18 12:35 STM8S_StdPeriph_Lib_V2.1.0\Libraries\STM8S_StdPeriph_Driver\
目录 0 2011-11-18 12:35 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
文件 69834 2011-11-18 11:27 STM8S_StdPeriph_Lib_V2.1.0\Libraries\STM8S_StdPeriph_Driver\Release_Notes.html
............此处省略374个文件信息
相关资源
- stm8s006超声波硬件设计电路
- STM8最强固件库
- esp8266 AT固件库
- STM32固件库V2.0.3
- STM32高级定时器TIM1——PWM输出
- STM8S105C6 ADC三通道采样-调试可用
- 595显示数码管驱动
- 003 STM32固件库使用手册的(中文).
- STM8S_StdPeriph_Lib_V2.3.1
- stm8s003f3最小系统原理图
- STM8S003F3-数据手册
- STM8S103中文数据手册
- 基于stm8s103f3p6的NRF24L01收发模块资料电
- STM8S的固件库V2.1.0
- stm8s ds18b20 温度传感器 IAR函数库源代
- stm8固件库函数使用手册
- STM8芯片S系列的完整固件库
- STM8S固件库
- STM8S003 IAR环境库函数模拟串口
- STM8s003 IAR库函数定时器1输入捕获功能
- STM32固件库使用手册_v3.5版本
- STM8S103F3封装库ddb(schpcb)
- SMT32F4函数固件库手册——新库
- sx1278+stm8s lora通信及信号强度提取
- 基于STM8S103F3P6的模拟串口程序
- 最新STM8L101固件库
- STM8S207R8(DS18B20)源代码
- 基于STM8的OLED驱动
- stm8s105 数据手册
- STM32固件库使用手册中文版
评论
共有 条评论