CodeForge QQ客服 CodeForge 400电话 客服电话 4006316121

stm32f10x_adc.c ( 文件浏览 )

  • yixin111 发布于2018-04-07
  • 浏览次数:0
  • 下载次数:0
  • 下载需 1 积分
  • 侵权举报
			/**
  ******************************************************************************
  * @file    stm32f10x_adc.c
  * @author  MCD Application Team
  * @version V3.5.0
  * @date    11-March-2011
  * @brief   This file provides all the ADC firmware functions.
  ******************************************************************************
  * @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.
  *
  * <h2><center>&copy; COPYRIGHT 2011 STMicroelectronics</center></h2>
  ******************************************************************************
  */

/* Includes ------------------------------------------------------------------*/
#include "stm32f10x_adc.h"
#include "stm32f10x_rcc.h"

/** @addtogroup STM32F10x_StdPeriph_Driver
  * @{

  */

/** @defgroup ADC 
  * @brief ADC driver modules
  * @{

  */

/** @defgroup ADC_Private_TypesDefinitions
  * @{

  */

/**
  * @
}
  */

/** @defgroup ADC_Private_Defines
  * @{

  */

/* ADC DISCNUM mask */
#define CR1_DISCNUM_Reset           ((uint32_t)0xFFFF1FFF)

/* ADC DISCEN mask */
#define CR1_DISCEN_Set              ((uint32_t)0x00000800)
#define CR1_DISCEN_Reset            ((uint32_t)0xFFFFF7FF)

/* ADC JAUTO mask */
#define CR1_JAUTO_Set               ((uint32_t)0x00000400)
#define CR1_JAUTO_Reset             ((uint32_t)0xFFFFFBFF)

/* ADC JDISCEN mask */
#define CR1_JDISCEN_Set             ((uint32_t)0x00001000)
#define CR1_JDISCEN_Reset           ((uint32_t)0xFFFFEFFF)

/* ADC AWDCH mask */
#define CR1_AWDCH_Reset             ((uint32_t)0xFFFFFFE0)

/* ADC Analog watchdog enable mode mask */
#define CR1_AWDMode_Reset           ((uint32_t)0xFF3FFDFF)

/* CR1 register Mask */
#define CR1_CLEAR_Mask              ((uint32_t)0xFFF0FEFF)

/* ADC ADON mask */
#define CR2_ADON_Set                ((uint32_t)0x00000001)
#define CR2_ADON_Reset              ((uint32_t)0xFFFFFFFE)

/* ADC DMA mask */
#define CR2_DMA_Set                 ((uint32_t)0x00000100)
#define CR2_DMA_Reset               ((uint32_t)0xFFFFFEFF)

/* ADC RSTCAL mask */
#define CR2_RSTCAL_Set              ((uint32_t)0x00000008)

/* ADC CAL mask */
#define CR2_CAL_Set                 ((uint32_t)0x00000004)

/* ADC SWSTART mask */
#define CR2_SWSTART_Set             ((uint32_t)0x00400000)

/* ADC EXTTRIG mask */
#define CR2_EXTTRIG_Set             ((uint32_t)0x00100000)
#define CR2_EXTTRIG_Reset           ((uint32_t)0xFFEFFFFF)

/* ADC Software start mask */
#define CR2_EXTTRIG_SWSTART_Set     ((uint32_t)0x00500000)
#define CR2_EXTTRIG_SWSTART_Reset   ((uint32_t)0xFFAFFFFF)

/* ADC JEXTSEL mask */
#define CR2_JEXTSEL_Reset           ((uint32_t)0xFFFF8FFF)

/* ADC JEXTTRIG mask */
#define CR2_JEXTTRIG_Set            ((uint32_t)0x00008000)
#define CR2_JEXTTRIG_Reset          ((uint32_t)0xFFFF7FFF)

/* ADC JSWSTART mask */
#define CR2_JSWSTART_Set            ((uint32_t)0x00200000)

/* ADC injected software start mask */
#define CR2_JEXTTRIG_JSWSTART_Set   ((uint32_t)0x00208000)
#define CR2_JEXTTRIG_JSWSTART_Reset ((uint32_t)0xFFDF7FFF)

/* ADC TSPD mask */
#define CR2_TSVREFE_Set             ((uint32_t)0x00800000)
#define CR2_TSVREFE_Reset           ((uint32_t)0xFF7FFFFF)

/* CR2 register Mask */
#define CR2_CLEAR_Mask              ((uint32_t)0xFFF1F7FD)

/* ADC SQx mask */
#define SQR3_SQ_Set                 ((uint32_t)0x0000001F)
#define SQR2_SQ_Set                 ((uint32_t)0x0000001F)
#define SQR1_SQ_Set                 ((uint32_t)0x0000001F)

/* SQR1 register Mask */
#define SQR1_CLEAR_Mask             ((uint32_t)0xFF0FFFFF)

/* ADC JSQx mask */
#define JSQR_JSQ_Set                ((uint32_t)0x0000001F)

/* ADC JL mask */
#define JSQR_JL_Set                 ((uint32_t)0x00300000)
#define JSQR_JL_Reset               ((uint32_t)0xFFCFFFFF)

/* ADC SMPx mask */
#define SMPR1_SMP_Set               ((uint32_t)0x00000007)
#define SMPR2_SMP_Set               ((uint32_t)0x00000007)

/* ADC JDRx registers offset */
#define JDR_Offset                  ((uint8_t)0x28)

/* ADC1 DR register base address */
#define DR_ADDRESS                  ((uint32_t)0x4001244C)

/**
  * @
}
  */

/** @defgroup ADC_Private_Macros
  * @{

  */

/**
  * @
}
  */

/** @defgroup ADC_Private_Variables
  * @{

  */

/**
  * @
}
  */

/** @defgroup ADC_Private_FunctionPrototypes
  * @{

  */

/**
  * @
}
  */

/** @defgroup ADC_Private_Functions
  * @{

  */

/**
  * @brief  Deinitializes the ADCx peripheral registers to their default reset values.
  * @param  ADCx: where x can be 1, 2 or 3 to select the ADC peripheral.
  * @retval None
  */
void ADC_DeInit(ADC_TypeDef* ADCx)
{

  /* Check the parameters */
  assert_param(IS_ADC_ALL_PERIPH(ADCx));
  
  if (ADCx == ADC1)
  {

    /* Enable ADC1 reset state */
    RCC_APB2PeriphResetCmd(RCC_APB2Periph_ADC1, ENABLE);
    /* Release ADC1 from reset state */
    RCC_APB2PeriphResetCmd(RCC_APB2Periph_ADC1, DISABLE);
  
}
  else if (ADCx == ADC2)
  {

    /* Enable ADC2 reset state */
    RCC_APB2PeriphResetCmd(RCC_APB2Periph_ADC2, ENABLE);
    /* Release ADC2 from reset state */
    RCC_APB2PeriphResetCmd(RCC_APB2Periph_ADC2, DISABLE);
  
}
  else
  {

    if (ADCx == ADC3)
    {

      /* Enable ADC3 reset state */
      RCC_APB2PeriphResetCmd(RCC_APB2Periph_ADC3, ENABLE);
      /* Release ADC3 from reset state */
      RCC_APB2PeriphResetCmd(RCC_APB2Periph_ADC3, DISABLE);
    
}
  
}

}

/**
  * @brief  Initializes the ADCx peripheral according to the specified parameters
  *         in the ADC_InitStruct.
  * @param  ADCx: where x can be 1, 2 or 3 to select the ADC peripheral.
  * @param  ADC_InitStruct: pointer to an ADC_InitTypeDef structure that contains
  *         the configuration information for the specified ADC peripheral.
  * @retval None
  */
void ADC_Init(ADC_TypeDef* ADCx, ADC_InitTypeDef* ADC_InitStruct)
{

  uint32_t tmpreg1 = 0;
  uint8_t tmpreg2 = 0;
  /* Check the parameters */
  assert_param(IS_ADC_ALL_PERIPH(ADCx));
  assert_param(IS_ADC_MODE(ADC_InitStruct->ADC_Mode));
  assert_param(IS_FUNCTIONAL_STATE(ADC_InitStruct->ADC_ScanConvMode));
  assert_param(IS_FUNCTIONAL_STATE(ADC_InitStruct->ADC_ContinuousConvMode));
  assert_param(IS_ADC_EXT_TRIG(ADC_InitStruct->ADC_ExternalTrigConv));   
  assert_param(IS_ADC_DATA_ALIGN(ADC_InitStruct->ADC_DataAlign)); 
  assert_param(IS_ADC_REGULAR_LENGTH(ADC_InitStruct->ADC_NbrOfChannel));

  /*---------------------------- ADCx CR1 Configuration -----------------*/
  /* Get the ADCx CR1 value */
  tmpreg1 = ADCx->CR1;
  /* Clear DUALMOD and SCAN bits */
  tmpreg1 &= CR1_CLEAR_Mask;
  /* Configure ADCx: Dual mode and scan conversion mode */
  /* Set DUALMOD bits according to ADC_Mode value */
  /* Set SCAN bit according to ADC_ScanConvMode value */
  tmpreg1 |= (uint32_t)(ADC_InitStruct->ADC_Mode | ((uint32_t)ADC_InitStruct->ADC_ScanConvMode << 8));
  /* Write to ADCx CR1 */
  ADCx->CR1 = tmpreg1;

  /*---------------------------- ADCx CR2 Configuration -----------------*/
  /* Get the ADCx CR2 value */
  tmpreg1 = ADCx->CR2;
  /* Clear CONT, ALIGN and EXTSEL bits */
  tmpreg1 &= CR2_CLEAR_Mask;
  /* Configure ADCx: external trigger event and continuous conversion mode */
  /* Set ALIGN bit according to ADC_DataAlign value */
  /* Set EXTSEL bits according to ADC_ExternalTrigConv value */
  /* Set CONT bit according to ADC_ContinuousConvMode value */
  tmpreg1 |= (uint32_t)(ADC_InitStruct->ADC_DataAlign | ADC_InitStruct->ADC_ExternalTrigConv |
            ((uint32_t)ADC_InitStruct->ADC_ContinuousConvMode << 1));
  /* Write to ADCx CR2 */
  ADCx->CR2 = tmpreg1;

  /*---------------------------- ADCx SQR1 Configuration -----------------*/
  /* Get the ADCx SQR1 value */
  tmpreg1 = ADCx->SQR1;
  /* Clear L bits */
  tmpreg1 &= SQR1_CLEAR_Mask;
  /* Configure ADCx: regular channel sequence length */
  /* Set L bits according to ADC_NbrOfChannel value */
  tmpreg2 |= (uint8_t) (ADC_InitStruct->ADC_NbrOfChannel - (uint8_t)1);
  tmpreg1 |= (uint32_t)tmpreg2 << 20;
  /* Write to ADCx SQR1 */
  ADCx->SQR1 = tmpreg1;

}

/**
  * @brief  Fills each ADC_InitStruct member with its default value.
  * @param  ADC_InitStruct : pointer to an ADC_InitTypeDef structure which will be initialized.
  * @retval None
  */
void ADC_StructInit(ADC_InitTypeDef* ADC_InitStruct)
{

  /* Reset ADC init structure parameters values */
  /* Initialize the ADC_Mode member */
  ADC_InitStruct->ADC_Mode = ADC_Mode_Independent;
  /* initialize the ADC_ScanConvMode member */
  ADC_InitStruct->ADC_ScanConvMode = DISABLE;
  /* Initialize the ADC_ContinuousConvMode member */
  ADC_InitStruct->ADC_ContinuousConvMode = DISABLE;
  /* Initialize the ADC_ExternalTrigConv member */
  ADC_InitStruct->ADC_ExternalTrigConv = ADC_ExternalTrigConv_T1_CC1;
  /* Initialize the ADC_DataAlign member */
  ADC_InitStruct->ADC_DataAlign = ADC_DataAlign_Right;
  /* Initialize the ADC_NbrOfChannel member */
  ADC_InitStruct->ADC_NbrOfChannel = 1;

}

/**
  * @brief  Enables or disables the specified ADC peripheral.
  * @param  ADCx: where x can be 1, 2 or 3 to select the ADC peripheral.
  * @param  NewState: new state of the ADCx peripheral.
  *   This parameter can be: ENABLE or DISABLE.
  * @retval None
  */
void ADC_Cmd(ADC_TypeDef* ADCx, FunctionalState NewState)
{

  /* Check the parameters */
  assert_param(IS_ADC_ALL_PERIPH(ADCx));
  assert_param(IS_FUNCTIONAL_STATE(NewState));
  if (NewState != DISABLE)
  {

    /* Set the ADON bit to wake up the ADC from power down mode */
    ADCx->CR2 |= CR2_ADON_Set;
  
}
  else
  {

    /* Disable the selected ADC peripheral */
    ADCx->CR2 &= CR2_ADON_Reset;
  
}

}

/**
  * @brief 
...
...
(文件超长,未完全显示,请下载后阅读剩余部分)
			
...
展开> <收缩

下载源码到电脑,阅读使用更方便

1 积分

快速下载
还剩0行未阅读,继续阅读
云测速

源码文件列表

温馨提示: 点击源码文件名可预览文件内容哦 ^_^
...
名称 大小 修改日期
readme.txt677.00 B30-12-13|23:40
core_cm3.c16.87 kB07-06-10|10:25
core_cm3.h83.71 kB09-02-11|14:59
startup_stm32f10x_cl.s15.40 kB10-03-11|10:52
startup_stm32f10x_hd.s15.14 kB10-03-11|10:52
startup_stm32f10x_hd_vl.s15.32 kB10-03-11|10:52
startup_stm32f10x_ld.s12.09 kB10-03-11|10:52
startup_stm32f10x_ld_vl.s13.34 kB10-03-11|10:52
startup_stm32f10x_md.s12.47 kB10-03-11|10:52
startup_stm32f10x_md_vl.s13.74 kB10-03-11|10:51
startup_stm32f10x_xl.s15.58 kB10-03-11|10:51
stm32f10x.h619.08 kB10-03-11|10:51
system_stm32f10x.c35.70 kB10-03-11|10:51
system_stm32f10x.h2.04 kB10-03-11|10:51
misc.h8.77 kB10-03-11|10:47
stm32f10x_adc.h21.18 kB10-03-11|10:47
stm32f10x_bkp.h7.38 kB10-03-11|10:47
stm32f10x_can.h26.91 kB10-03-11|10:47
stm32f10x_cec.h6.42 kB10-03-11|10:47
stm32f10x_crc.h2.11 kB10-03-11|10:47
stm32f10x_dac.h14.88 kB10-03-11|10:47
stm32f10x_dbgmcu.h3.73 kB10-03-11|10:47
stm32f10x_dma.h20.27 kB10-03-11|10:47
stm32f10x_exti.h6.66 kB10-03-11|10:47
stm32f10x_flash.h24.85 kB10-03-11|10:47
stm32f10x_fsmc.h26.38 kB10-03-11|10:47
stm32f10x_gpio.h19.70 kB10-03-11|10:47
stm32f10x_i2c.h29.33 kB10-03-11|10:47
stm32f10x_iwdg.h3.74 kB10-03-11|10:47
stm32f10x_pwr.h4.28 kB10-03-11|10:47
stm32f10x_rcc.h29.74 kB10-03-11|10:47
stm32f10x_rtc.h3.77 kB10-03-11|10:47
stm32f10x_sdio.h21.35 kB10-03-11|10:47
stm32f10x_spi.h17.31 kB10-03-11|10:47
stm32f10x_tim.h51.20 kB10-03-11|10:47
stm32f10x_usart.h16.16 kB10-03-11|10:47
stm32f10x_wwdg.h2.90 kB10-03-11|10:47
misc.c6.88 kB10-03-11|10:47
stm32f10x_adc.c46.09 kB10-03-11|10:47
stm32f10x_bkp.c8.26 kB10-03-11|10:47
stm32f10x_can.c44.05 kB10-03-11|10:47
stm32f10x_cec.c11.38 kB10-03-11|10:47
stm32f10x_crc.c3.27 kB10-03-11|10:47
stm32f10x_dac.c18.64 kB10-03-11|10:47
stm32f10x_dbgmcu.c5.03 kB10-03-11|10:47
stm32f10x_dma.c28.91 kB10-03-11|10:47
stm32f10x_exti.c6.80 kB10-03-11|10:47
stm32f10x_flash.c61.08 kB10-03-11|10:47
stm32f10x_fsmc.c34.65 kB10-03-11|10:47
stm32f10x_gpio.c22.68 kB11-03-11|17:43
stm32f10x_i2c.c44.71 kB10-03-11|10:47
stm32f10x_iwdg.c4.80 kB10-03-11|10:47
stm32f10x_pwr.c8.55 kB10-03-11|10:47
stm32f10x_rcc.c50.07 kB10-03-11|10:47
stm32f10x_rtc.c8.40 kB10-03-11|10:47
stm32f10x_sdio.c28.25 kB10-03-11|10:47
stm32f10x_spi.c29.52 kB10-03-11|10:47
stm32f10x_tim.c106.60 kB10-03-11|10:47
stm32f10x_usart.c37.41 kB10-03-11|10:47
stm32f10x_wwdg.c5.60 kB10-03-11|10:47
startup_stm32f10x_hd.lst50.74 kB30-12-13|22:26
STM32-DEMO.map53.47 kB30-12-13|22:26
core_cm3.crf3.45 kB30-12-13|22:26
core_cm3.d96.00 B30-12-13|22:26
core_cm3.o10.00 kB30-12-13|22:26
led.crf231.34 kB18-04-12|21:22
led.d0.00 B18-04-12|21:25
led.__i268.00 B18-04-12|21:25
main.crf242.03 kB30-12-13|22:26
main.d508.00 B30-12-13|22:26
main.o254.60 kB30-12-13|22:26
startup_stm32f10x_hd.d75.00 B30-12-13|22:26
startup_stm32f10x_hd.o6.47 kB30-12-13|22:26
STM32-DEMO(??2012-06-1820.00 B39%|15-06-12
STM32-DEMO(??2012-07-1316.00 B94%|12-07-12
STM32-DEMO(??2012-07-2118.00 B42%|20-07-12
STM32-DEMO.axf271.57 kB30-12-13|22:26
STM32-DEMO.hex12.43 kB14-06-12|17:28
STM32-DEMO.htm41.89 kB30-12-13|22:26
STM32-DEMO.lnp537.00 B30-12-13|22:26
STM32-DEMO.plg238.00 B07-02-14|00:58
STM32-DEMO.sct479.00 B29-03-12|13:57
STM32-DEMO.tra1.65 kB30-12-13|22:26
stm32f10x_gpio.crf242.04 kB30-12-13|22:26
stm32f10x_gpio.d614.00 B30-12-13|22:26
stm32f10x_gpio.o259.65 kB30-12-13|22:26
stm32f10x_it.crf238.09 kB30-12-13|22:26
stm32f10x_it.d562.00 B30-12-13|22:26
stm32f10x_it.o253.84 kB30-12-13|22:26
stm32f10x_rcc.crf245.53 kB30-12-13|22:26
stm32f10x_rcc.d601.00 B30-12-13|22:26
stm32f10x_rcc.o263.98 kB30-12-13|22:26
stm32f10x_usart.crf244.10 kB30-12-13|22:26
stm32f10x_usart.d627.00 B30-12-13|22:26
stm32f10x_usart.o263.72 kB30-12-13|22:26
system_stm32f10x.crf239.78 kB30-12-13|22:26
system_stm32f10x.d573.00 B30-12-13|22:26
system_stm32f10x.o253.81 kB30-12-13|22:26
usart1.crf243.47 kB30-12-13|22:26
usart1.d585.00 B30-12-13|22:26
usart1.o257.90 kB30-12-13|22:26
JLink0.00 B234|47%
JLinkLog.txt41.82 kB30-12-13|22:27
JLinkSettings.ini375.00 B29-03-12|14:15
main.c907.00 B30-12-13|23:39
STM32-DEMO.plg3.52 kB29-03-12|13:51
STM32-DEMO.uvgui.flyleaf65.67 kB02-06-12|22:24
STM32-DEMO.uvgui_flyleaf.bak69.11 kB24-05-12|16:33
STM32-DEMO.uvopt77.27 kB07-02-14|00:58
STM32-DEMO.uvproj15.97 kB10-07-12|15:16
STM32-DEMO_LED-DEMO.dep5.51 kB18-04-12|21:44
STM32-DEMO_Target1.00 B26%|29-03-12
STM32-DEMO_USART1-DEMO.dep5.73 kB07-02-14|00:58
STM32-DEMO_uvopt.bak76.95 kB30-12-13|23:39
STM32-DEMO_uvproj.bak16.00 kB02-06-12|22:24
stm32f10x_conf.h3.22 kB18-04-12|21:30
stm32f10x_it.c4.30 kB04-04-11|19:03
stm32f10x_it.h2.04 kB04-04-11|19:03
usart1.c4.94 kB30-12-13|23:38
usart1.h234.00 B05-08-11|21:11
read.txt221.00 B30-12-13|23:36
core_cm3.c16.87 kB07-06-10|10:25
core_cm3.h83.71 kB09-02-11|14:59
startup_stm32f10x_cl.s15.40 kB10-03-11|10:52
startup_stm32f10x_hd.s15.14 kB10-03-11|10:52
startup_stm32f10x_hd_vl.s15.32 kB10-03-11|10:52
startup_stm32f10x_ld.s12.09 kB10-03-11|10:52
startup_stm32f10x_ld_vl.s13.34 kB10-03-11|10:52
startup_stm32f10x_md.s12.47 kB10-03-11|10:52
startup_stm32f10x_md_vl.s13.74 kB10-03-11|10:51
startup_stm32f10x_xl.s15.58 kB10-03-11|10:51
stm32f10x.h619.08 kB10-03-11|10:51
system_stm32f10x.c35.70 kB10-03-11|10:51
system_stm32f10x.h2.04 kB10-03-11|10:51
misc.h8.77 kB10-03-11|10:47
stm32f10x_adc.h21.18 kB10-03-11|10:47
stm32f10x_bkp.h7.38 kB10-03-11|10:47
stm32f10x_can.h26.91 kB10-03-11|10:47
stm32f10x_cec.h6.42 kB10-03-11|10:47
stm32f10x_crc.h2.11 kB10-03-11|10:47
stm32f10x_dac.h14.88 kB10-03-11|10:47
stm32f10x_dbgmcu.h3.73 kB10-03-11|10:47
stm32f10x_dma.h20.27 kB10-03-11|10:47
stm32f10x_exti.h6.66 kB10-03-11|10:47
stm32f10x_flash.h24.85 kB10-03-11|10:47
stm32f10x_fsmc.h26.38 kB10-03-11|10:47
stm32f10x_gpio.h19.70 kB10-03-11|10:47
stm32f10x_i2c.h29.33 kB10-03-11|10:47
stm32f10x_iwdg.h3.74 kB10-03-11|10:47
stm32f10x_pwr.h4.28 kB10-03-11|10:47
stm32f10x_rcc.h29.74 kB10-03-11|10:47
stm32f10x_rtc.h3.77 kB10-03-11|10:47
stm32f10x_sdio.h21.35 kB10-03-11|10:47
stm32f10x_spi.h17.31 kB10-03-11|10:47
stm32f10x_tim.h51.20 kB10-03-11|10:47
stm32f10x_usart.h16.16 kB10-03-11|10:47
stm32f10x_wwdg.h2.90 kB10-03-11|10:47
misc.c6.88 kB10-03-11|10:47
stm32f10x_adc.c46.09 kB10-03-11|10:47
stm32f10x_bkp.c8.26 kB10-03-11|10:47
stm32f10x_can.c44.05 kB10-03-11|10:47
stm32f10x_cec.c11.38 kB10-03-11|10:47
stm32f10x_crc.c3.27 kB10-03-11|10:47
stm32f10x_dac.c18.64 kB10-03-11|10:47
stm32f10x_dbgmcu.c5.03 kB10-03-11|10:47
stm32f10x_dma.c28.91 kB10-03-11|10:47
stm32f10x_exti.c6.80 kB10-03-11|10:47
stm32f10x_flash.c61.08 kB10-03-11|10:47
stm32f10x_fsmc.c34.65 kB10-03-11|10:47
stm32f10x_gpio.c22.68 kB11-03-11|17:43
stm32f10x_i2c.c44.71 kB10-03-11|10:47
stm32f10x_iwdg.c4.80 kB10-03-11|10:47
stm32f10x_pwr.c8.55 kB10-03-11|10:47
stm32f10x_rcc.c50.07 kB10-03-11|10:47
stm32f10x_rtc.c8.40 kB10-03-11|10:47
stm32f10x_sdio.c28.25 kB10-03-11|10:47
stm32f10x_spi.c29.52 kB10-03-11|10:47
stm32f10x_tim.c106.60 kB10-03-11|10:47
stm32f10x_usart.c37.41 kB10-03-11|10:47
stm32f10x_wwdg.c5.60 kB10-03-11|10:47
startup_stm32f10x_hd.lst50.74 kB08-03-14|14:30
STM32-DEMO.map31.06 kB08-03-14|14:30
core_cm3.crf3.45 kB08-03-14|14:30
core_cm3.d96.00 B08-03-14|14:30
core_cm3.o10.11 kB08-03-14|14:30
led.crf231.34 kB18-04-12|19:59
led.d396.00 B18-04-12|19:59
led.o246.96 kB18-04-12|19:59
main.crf242.03 kB08-03-14|14:30
main.d508.00 B08-03-14|14:30
main.o254.96 kB08-03-14|14:30
startup_stm32f10x_hd.d75.00 B08-03-14|14:30
startup_stm32f10x_hd.o6.51 kB08-03-14|14:30
STM32-DEMO.axf271.26 kB08-03-14|14:30
STM32-DEMO.htm40.88 kB08-03-14|14:30
STM32-DEMO.lnp537.00 B08-03-14|14:30
STM32-DEMO.plg232.00 B05-04-18|20:43
STM32-DEMO.sct479.00 B29-03-12|13:57
STM32-DEMO.tra1.65 kB08-03-14|14:30
stm32f10x_gpio.crf242.04 kB08-03-14|14:30
stm32f10x_gpio.d614.00 B08-03-14|14:30
stm32f10x_gpio.o260.00 kB08-03-14|14:30
stm32f10x_it.crf238.09 kB08-03-14|14:30
stm32f10x_it.d562.00 B08-03-14|14:30
stm32f10x_it.o254.21 kB08-03-14|14:30
stm32f10x_rcc.crf245.53 kB08-03-14|14:30
stm32f10x_rcc.d601.00 B08-03-14|14:30
stm32f10x_rcc.o264.36 kB08-03-14|14:30
stm32f10x_usart.crf244.10 kB08-03-14|14:30
stm32f10x_usart.d627.00 B08-03-14|14:30
stm32f10x_usart.o264.06 kB08-03-14|14:30
system_stm32f10x.crf239.78 kB08-03-14|14:30
system_stm32f10x.d573.00 B08-03-14|14:30
system_stm32f10x.o254.19 kB08-03-14|14:30
usart2.crf243.47 kB08-03-14|14:30
usart2.d585.00 B08-03-14|14:30
usart2.o258.32 kB08-03-14|14:30
JLink0.00 B234|47%
JLinkLog.txt41.91 kB30-12-13|23:18
JLinkSettings.ini375.00 B29-03-12|14:15
main.c777.00 B30-12-13|23:35
STM32-DEMO.plg3.52 kB29-03-12|13:51
STM32-DEMO.uvgui.flyleaf65.82 kB29-03-12|20:03
STM32-DEMO.uvgui_flyleaf.bak65.61 kB29-03-12|14:50
STM32-DEMO.uvopt79.14 kB05-04-18|21:04
STM32-DEMO.uvproj15.97 kB18-04-12|21:58
STM32-DEMO_LED-DEMO.dep5.51 kB18-04-12|21:57
STM32-DEMO_Target1.00 B26%|29-03-12
STM32-DEMO_UART2-DEMO.dep3.15 kB05-04-18|20:43
STM32-DEMO_uvopt.bak79.92 kB08-03-14|17:25
STM32-DEMO_uvproj.bak15.62 kB18-04-12|21:48
stm32f10x_conf.h3.22 kB18-04-12|21:51
stm32f10x_it.c4.30 kB04-04-11|19:03
stm32f10x_it.h2.04 kB04-04-11|19:03
usart2.c5.25 kB30-12-13|23:35
usart2.h234.00 B08-08-11|10:21
read.txt219.00 B30-12-13|23:34
core_cm3.c16.87 kB07-06-10|10:25
core_cm3.h83.71 kB09-02-11|14:59
startup_stm32f10x_cl.s15.40 kB10-03-11|10:52
startup_stm32f10x_hd.s15.14 kB10-03-11|10:52
startup_stm32f10x_hd_vl.s15.32 kB10-03-11|10:52
startup_stm32f10x_ld.s12.09 kB10-03-11|10:52
startup_stm32f10x_ld_vl.s13.34 kB10-03-11|10:52
startup_stm32f10x_md.s12.47 kB10-03-11|10:52
startup_stm32f10x_md_vl.s13.74 kB10-03-11|10:51
startup_stm32f10x_xl.s15.58 kB10-03-11|10:51
stm32f10x.h619.08 kB10-03-11|10:51
system_stm32f10x.c35.70 kB10-03-11|10:51
system_stm32f10x.h2.04 kB10-03-11|10:51
misc.h8.77 kB10-03-11|10:47
stm32f10x_adc.h21.18 kB10-03-11|10:47
stm32f10x_bkp.h7.38 kB10-03-11|10:47
stm32f10x_can.h26.91 kB10-03-11|10:47
stm32f10x_cec.h6.42 kB10-03-11|10:47
stm32f10x_crc.h2.11 kB10-03-11|10:47
stm32f10x_dac.h14.88 kB10-03-11|10:47
stm32f10x_dbgmcu.h3.73 kB10-03-11|10:47
stm32f10x_dma.h20.27 kB10-03-11|10:47
stm32f10x_exti.h6.66 kB10-03-11|10:47
stm32f10x_flash.h24.85 kB10-03-11|10:47
stm32f10x_fsmc.h26.38 kB10-03-11|10:47
stm32f10x_gpio.h19.70 kB10-03-11|10:47
stm32f10x_i2c.h29.33 kB10-03-11|10:47
stm32f10x_iwdg.h3.74 kB10-03-11|10:47
stm32f10x_pwr.h4.28 kB10-03-11|10:47
stm32f10x_rcc.h29.74 kB10-03-11|10:47
stm32f10x_rtc.h3.77 kB10-03-11|10:47
stm32f10x_sdio.h21.35 kB10-03-11|10:47
stm32f10x_spi.h17.31 kB10-03-11|10:47
stm32f10x_tim.h51.20 kB10-03-11|10:47
stm32f10x_usart.h16.16 kB10-03-11|10:47
stm32f10x_wwdg.h2.90 kB10-03-11|10:47
misc.c6.88 kB10-03-11|10:47
stm32f10x_adc.c46.09 kB10-03-11|10:47
stm32f10x_bkp.c8.26 kB10-03-11|10:47
stm32f10x_can.c44.05 kB10-03-11|10:47
stm32f10x_cec.c11.38 kB10-03-11|10:47
stm32f10x_crc.c3.27 kB10-03-11|10:47
stm32f10x_dac.c18.64 kB10-03-11|10:47
stm32f10x_dbgmcu.c5.03 kB10-03-11|10:47
stm32f10x_dma.c28.91 kB10-03-11|10:47
stm32f10x_exti.c6.80 kB10-03-11|10:47
stm32f10x_flash.c61.08 kB10-03-11|10:47
stm32f10x_fsmc.c34.65 kB10-03-11|10:47
stm32f10x_gpio.c22.68 kB11-03-11|17:43
stm32f10x_i2c.c44.71 kB10-03-11|10:47
stm32f10x_iwdg.c4.80 kB10-03-11|10:47
stm32f10x_pwr.c8.55 kB10-03-11|10:47
stm32f10x_rcc.c50.07 kB10-03-11|10:47
stm32f10x_rtc.c8.40 kB10-03-11|10:47
stm32f10x_sdio.c28.25 kB10-03-11|10:47
stm32f10x_spi.c29.52 kB10-03-11|10:47
stm32f10x_tim.c106.60 kB10-03-11|10:47
stm32f10x_usart.c37.41 kB10-03-11|10:47
stm32f10x_wwdg.c5.60 kB10-03-11|10:47
startup_stm32f10x_hd.lst50.74 kB30-12-13|23:28
STM32-DEMO.map31.06 kB30-12-13|23:28
core_cm3.crf3.45 kB30-12-13|23:28
core_cm3.d96.00 B30-12-13|23:28
core_cm3.o10.00 kB30-12-13|23:28
led.crf231.34 kB18-04-12|19:59
led.d396.00 B18-04-12|19:59
led.o246.96 kB18-04-12|19:59
main.crf242.03 kB30-12-13|23:28
main.d508.00 B30-12-13|23:28
main.o254.59 kB30-12-13|23:28
startup_stm32f10x_hd.d75.00 B30-12-13|23:28
startup_stm32f10x_hd.o6.47 kB30-12-13|23:28
STM32-DEMO.axf270.61 kB30-12-13|23:28
STM32-DEMO.htm40.88 kB30-12-13|23:28
STM32-DEMO.lnp537.00 B30-12-13|23:28
STM32-DEMO.plg203.00 B30-12-13|23:34
STM32-DEMO.sct479.00 B29-03-12|13:57
STM32-DEMO.tra1.65 kB30-12-13|23:28
stm32f10x_gpio.crf242.04 kB30-12-13|23:28
stm32f10x_gpio.d614.00 B30-12-13|23:28
stm32f10x_gpio.o259.65 kB30-12-13|23:28
stm32f10x_it.crf238.09 kB30-12-13|23:28
stm32f10x_it.d562.00 B30-12-13|23:28
stm32f10x_it.o253.84 kB30-12-13|23:28
stm32f10x_rcc.crf245.53 kB30-12-13|23:28
stm32f10x_rcc.d601.00 B30-12-13|23:28
stm32f10x_rcc.o263.98 kB30-12-13|23:28
stm32f10x_usart.crf244.10 kB30-12-13|23:28
stm32f10x_usart.d627.00 B30-12-13|23:28
stm32f10x_usart.o263.72 kB30-12-13|23:28
system_stm32f10x.crf239.78 kB30-12-13|23:28
system_stm32f10x.d573.00 B30-12-13|23:28
system_stm32f10x.o253.81 kB30-12-13|23:28
usart2.crf243.47 kB30-12-13|23:28
usart2.d585.00 B30-12-13|23:28
usart2.o257.95 kB30-12-13|23:28
JLink0.00 B234|47%
JLinkLog.txt41.91 kB30-12-13|23:33
JLinkSettings.ini375.00 B29-03-12|14:15
main.c748.00 B30-12-13|23:32
STM32-DEMO.plg3.52 kB29-03-12|13:51
STM32-DEMO.uvgui.flyleaf65.82 kB29-03-12|20:03
STM32-DEMO.uvgui_flyleaf.bak65.61 kB29-03-12|14:50
STM32-DEMO.uvopt77.36 kB30-12-13|23:34
STM32-DEMO.uvproj15.97 kB18-04-12|21:58
STM32-DEMO_LED-DEMO.dep5.51 kB18-04-12|21:57
STM32-DEMO_Target1.00 B26%|29-03-12
STM32-DEMO_UART2-DEMO.dep5.73 kB30-12-13|23:33
STM32-DEMO_uvopt.bak77.37 kB30-12-13|23:33
STM32-DEMO_uvproj.bak15.62 kB18-04-12|21:48
stm32f10x_conf.h3.22 kB18-04-12|21:51
stm32f10x_it.c4.30 kB30-12-13|23:33
stm32f10x_it.h2.04 kB04-04-11|19:03
usart2.c5.25 kB30-12-13|23:33
usart2.h234.00 B30-12-13|23:33
startup0.00 B05-04-18|19:11
inc0.00 B05-04-18|19:11
src0.00 B05-04-18|19:11
startup0.00 B05-04-18|19:11
inc0.00 B05-04-18|19:11
src0.00 B05-04-18|19:11
startup0.00 B05-04-18|19:11
inc0.00 B05-04-18|19:11
src0.00 B05-04-18|19:11
CMSIS0.00 B05-04-18|19:11
FWlib0.00 B05-04-18|19:11
Listing0.00 B05-04-18|19:11
Output0.00 B05-04-18|19:11
USER0.00 B05-04-18|19:11
CMSIS0.00 B05-04-18|19:11
FWlib0.00 B05-04-18|19:11
Listing0.00 B05-04-18|19:11
Output0.00 B05-04-18|19:11
USER0.00 B05-04-18|21:04
CMSIS0.00 B05-04-18|19:11
FWlib0.00 B05-04-18|19:11
Listing0.00 B05-04-18|19:11
Output0.00 B05-04-18|19:11
USER0.00 B05-04-18|19:11
??0.00 B05-04-18|19:11
??0.00 B05-04-18|19:11
??0.00 B05-04-18|19:11
USART10.00 B05-04-18|19:11
USART20.00 B05-04-18|19:11
USART30.00 B05-04-18|19:11
STM320.00 B????|0
云测速

stm32f10x_adc.c (3.19 MB)

需要 1 积分
您持有 积分

CodeForge积分(原CF币)全新升级,功能更强大,使用更便捷,不仅可以用来下载海量源代码马上还可兑换精美小礼品了 了解更多

您的积分不足

支付宝优惠套餐快速获取 30 积分

订单支付完成后,积分将自动加入到您的账号。以下是优惠期的人民币价格,优惠期过后将恢复美元价格。

更多付款方式:网银PayPal

上传代码,免费获取

您本次下载所消耗的积分将转交上传作者。

同一源码,30天内重复下载,只扣除一次积分。

登录 CodeForge

还没有CodeForge账号? 立即注册
关注微博
联系客服

Switch to the English version?

Yes
CodeForge 英文版
No
CodeForge 中文版

完善个人资料,获价值¥30元积分奖励!

^_^"呃 ...

Sorry!这位大神很神秘,未开通博客呢,请浏览一下其他的吧
好的