亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關于我們
? 蟲蟲下載站

?? stm32l1xx_syscfg.c

?? VS1003_MP3_SPI_SDHC_FAT32
?? C
?? 第 1 頁 / 共 2 頁
字號:
/**
  ******************************************************************************
  * @file    stm32l1xx_syscfg.c
  * @author  MCD Application Team
  * @version V1.1.0
  * @date    24-January-2012
  * @brief   This file provides firmware functions to manage the following
  *          functionalities of the SYSCFG and RI peripherals:
  *           + SYSCFG Initialization and Configuration
  *           + RI Initialization and Configuration
  *
@verbatim
 ===============================================================================
                     ##### How to use this driver #####
 ===============================================================================
    [..] This driver provides functions for:
         (#) Remapping the memory accessible in the code area using
          SYSCFG_MemoryRemapConfig().
         (#) Manage the EXTI lines connection to the GPIOs using
             SYSCFG_EXTILineConfig().
         (#) Routing of I/Os toward the input captures of timers (TIM2, TIM3 and TIM4).
         (#) Input routing of COMP1 and COMP2.
         (#) Routing of internal reference voltage VREFINT to PB0 and PB1.
         (#) The RI registers can be accessed only when the comparator
             APB interface clock is enabled.
             To enable comparator clock use:
             RCC_APB1PeriphClockCmd(RCC_APB1Periph_COMP, ENABLE).
             Following functions uses RI registers:
             (++) SYSCFG_RIDeInit()
             (++) SYSCFG_RITIMSelect()
             (++) SYSCFG_RITIMInputCaptureConfig()
             (++) SYSCFG_RIResistorConfig()
             (++) SYSCFG_RIChannelSpeedConfig()
             (++) SYSCFG_RIIOSwitchConfig()
             (++) SYSCFG_RISwitchControlModeCmd()
             (++) SYSCFG_RIHysteresisConfig()
         (#) The SYSCFG registers can be accessed only when the SYSCFG
             interface APB clock is enabled.
             To enable SYSCFG APB clock use:
             RCC_APB2PeriphClockCmd(RCC_APB2Periph_SYSCFG, ENABLE);
             Following functions uses SYSCFG registers:
             (++) SYSCFG_DeInit()  
             (++) SYSCFG_MemoryRemapConfig()
             (++) SYSCFG_GetBootMode()  
             (++) SYSCFG_USBPuCmd()
             (++) SYSCFG_EXTILineConfig()
@endverbatim
  *
  ******************************************************************************
  * @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.
  *
  * FOR MORE INFORMATION PLEASE READ CAREFULLY THE LICENSE AGREEMENT FILE
  * LOCATED IN THE ROOT DIRECTORY OF THIS FIRMWARE PACKAGE.
  *
  * <h2><center>&copy; COPYRIGHT 2012 STMicroelectronics</center></h2>
  ******************************************************************************
  */

/* Includes ------------------------------------------------------------------*/
#include "stm32l1xx_syscfg.h"
#include "stm32l1xx_rcc.h"

/** @addtogroup STM32L1xx_StdPeriph_Driver
  * @{
  */

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

/* Private typedef -----------------------------------------------------------*/
/* Private define ------------------------------------------------------------*/
#define TIM_SELECT_MASK             ((uint32_t)0xFFFCFFFF) /*!< TIM select mask */
#define IC_ROUTING_MASK             ((uint32_t)0x0000000F) /*!< Input Capture routing mask */

/* Private macro -------------------------------------------------------------*/
/* Private variables ---------------------------------------------------------*/
/* Private function prototypes -----------------------------------------------*/
/* Private functions ---------------------------------------------------------*/

/** @defgroup SYSCFG_Private_Functions
  * @{
  */

/** @defgroup SYSCFG_Group1 SYSCFG Initialization and Configuration functions
 *  @brief   SYSCFG Initialization and Configuration functions
 *
@verbatim
 ===============================================================================
        ##### SYSCFG Initialization and Configuration functions #####
 ===============================================================================

@endverbatim
  * @{
  */

/**
  * @brief  Deinitializes the SYSCFG registers to their default reset values.
  * @param  None.
  * @retval None.
  * @Note: MEMRMP bits are not reset by APB2 reset.
  */
void SYSCFG_DeInit(void)
{
   RCC_APB2PeriphResetCmd(RCC_APB2Periph_SYSCFG, ENABLE);
   RCC_APB2PeriphResetCmd(RCC_APB2Periph_SYSCFG, DISABLE);
}

/**
  * @brief Deinitializes the RI registers to their default reset values.
  * @param  None.
  * @retval None.
  */
void SYSCFG_RIDeInit(void)
{
  RI->ICR     = ((uint32_t)0x00000000);    /*!< Set RI->ICR to reset value */
  RI->ASCR1   = ((uint32_t)0x00000000);    /*!< Set RI->ASCR1 to reset value */
  RI->ASCR2   = ((uint32_t)0x00000000);    /*!< Set RI->ASCR2 to reset value */
  RI->HYSCR1  = ((uint32_t)0x00000000);    /*!< Set RI->HYSCR1 to reset value */
  RI->HYSCR2  = ((uint32_t)0x00000000);    /*!< Set RI->HYSCR2 to reset value */
  RI->HYSCR3  = ((uint32_t)0x00000000);    /*!< Set RI->HYSCR3 to reset value */
  RI->HYSCR4  = ((uint32_t)0x00000000);    /*!< Set RI->HYSCR4 to reset value */
}

/**
  * @brief  Changes the mapping of the specified memory.
  * @param  SYSCFG_Memory: selects the memory remapping.
  *   This parameter can be one of the following values:
  *     @arg SYSCFG_MemoryRemap_Flash: Main Flash memory mapped at 0x00000000  
  *     @arg SYSCFG_MemoryRemap_SystemFlash: System Flash memory mapped at 0x00000000
  *     @arg SYSCFG_MemoryRemap_FSMC: FSMC memory mapped at 0x00000000  
  *     @arg SYSCFG_MemoryRemap_SRAM: Embedded SRAM mapped at 0x00000000
  * @retval None
  */
void SYSCFG_MemoryRemapConfig(uint8_t SYSCFG_MemoryRemap)
{
  /* Check the parameters */
  assert_param(IS_SYSCFG_MEMORY_REMAP_CONFING(SYSCFG_MemoryRemap));
  SYSCFG->MEMRMP = SYSCFG_MemoryRemap;
}

/**
  * @brief  Returns the boot mode as configured by user.
  * @param  None.
  * @retval The boot mode as configured by user. The returned value can be one 
  *         of the following values:
  *              - 0x00000000: Boot is configured in Main Flash memory
  *              - 0x00000100: Boot is configured in System Flash memory
  *              - 0x00000200: Boot is configured in FSMC memory
  *              - 0x00000300: Boot is configured in Embedded SRAM memory
  */
uint32_t SYSCFG_GetBootMode(void)
{
  return (SYSCFG->MEMRMP & SYSCFG_MEMRMP_BOOT_MODE);
}

/**
  * @brief  Control the internal pull-up on USB DP line.
  * @param  NewState: New state of the internal pull-up on USB DP line. 
  *   This parameter can be ENABLE: Connect internal pull-up on USB DP line.
  *                      or DISABLE: Disconnect internal pull-up on USB DP line.
  * @retval None
  */
void SYSCFG_USBPuCmd(FunctionalState NewState)
{
  /* Check the parameters */
  assert_param(IS_FUNCTIONAL_STATE(NewState));

  if (NewState != DISABLE)
  {
    /* Connect internal pull-up on USB DP line */
    SYSCFG->PMC |= (uint32_t) SYSCFG_PMC_USB_PU;
  }
  else
  {
    /* Disconnect internal pull-up on USB DP line */
    SYSCFG->PMC &= (uint32_t)(~SYSCFG_PMC_USB_PU);
  }
}

/**
  * @brief  Selects the GPIO pin used as EXTI Line.
  * @param  EXTI_PortSourceGPIOx : selects the GPIO port to be used as source 
  *                                for EXTI lines where x can be (A, B, C, D, E, F, G or H).
  * @param  EXTI_PinSourcex: specifies the EXTI line to be configured.
  *         This parameter can be EXTI_PinSourcex where x can be (0..15).
  * @retval None
  */
void SYSCFG_EXTILineConfig(uint8_t EXTI_PortSourceGPIOx, uint8_t EXTI_PinSourcex)
{
  uint32_t tmp = 0x00;

  /* Check the parameters */
  assert_param(IS_EXTI_PORT_SOURCE(EXTI_PortSourceGPIOx));
  assert_param(IS_EXTI_PIN_SOURCE(EXTI_PinSourcex));
  
  tmp = ((uint32_t)0x0F) << (0x04 * (EXTI_PinSourcex & (uint8_t)0x03));
  SYSCFG->EXTICR[EXTI_PinSourcex >> 0x02] &= ~tmp;
  SYSCFG->EXTICR[EXTI_PinSourcex >> 0x02] |= (((uint32_t)EXTI_PortSourceGPIOx) << (0x04 * (EXTI_PinSourcex & (uint8_t)0x03)));
}

/**
  * @}
  */

/** @defgroup SYSCFG_Group2 RI Initialization and Configuration functions
 *  @brief   RI Initialization and Configuration functions
 *
@verbatim   
 ===============================================================================
        ##### RI Initialization and Configuration functions #####
 ===============================================================================

@endverbatim
  * @{
  */

/**
  * @brief  Configures the routing interface to select which Timer to be routed.
  * @note   Routing capability can be applied only on one of the three timers
  *         (TIM2, TIM3 or TIM4) at a time.
  * @param  TIM_Select: Timer select.
  *   This parameter can be one of the following values:
  *     @arg TIM_Select_None: No timer selected and default Timer mapping is enabled.
  *     @arg TIM_Select_TIM2: Timer 2 Input Captures to be routed.
  *     @arg TIM_Select_TIM3: Timer 3 Input Captures to be routed.
  *     @arg TIM_Select_TIM4: Timer 4 Input Captures to be routed.
  * @retval None.
  */
void SYSCFG_RITIMSelect(uint32_t TIM_Select)
{
  uint32_t tmpreg = 0;

  /* Check the parameters */
  assert_param(IS_RI_TIM(TIM_Select));

  /* Get the old register value */
  tmpreg = RI->ICR;

  /* Clear the TIMx select bits */
  tmpreg &= TIM_SELECT_MASK;

  /* Select the Timer */
  tmpreg |= (TIM_Select);

  /* Write to RI->ICR register */
  RI->ICR = tmpreg;
}

/**
  * @brief  Configures the routing interface to map Input Capture 1, 2, 3 or 4
  *         to a selected I/O pin.
  * @param  RI_InputCapture selects which input capture to be routed.
  *   This parameter can be one (or combination) of the following parameters:
  *     @arg  RI_InputCapture_IC1: Input capture 1 is selected.
  *     @arg  RI_InputCapture_IC2: Input capture 2 is selected.
  *     @arg  RI_InputCapture_IC3: Input capture 3 is selected.
  *     @arg  RI_InputCapture_IC4: Input capture 4 is selected.
  * @param  RI_InputCaptureRouting: selects which pin to be routed to Input Capture.
  *   This parameter can be one of the following values:
  * @param  RI_InputCaptureRouting_0 to RI_InputCaptureRouting_15
  *     e.g.
  *       SYSCFG_RITIMSelect(TIM_Select_TIM2)
  *       SYSCFG_RITIMInputCaptureConfig(RI_InputCapture_IC1, RI_InputCaptureRouting_1)
  *       allows routing of Input capture IC1 of TIM2 to PA4.
  *       For details about correspondence between RI_InputCaptureRouting_x 
  *       and I/O pins refer to the parameters' description in the header file
  *       or refer to the product reference manual.
  * @note Input capture selection bits are not reset by this function.
  *       To reset input capture selection bits, use SYSCFG_RIDeInit() function.
  * @note The I/O should be configured in alternate function mode (AF14) using
  *       GPIO_PinAFConfig() function.
  * @retval None.
  */
void SYSCFG_RITIMInputCaptureConfig(uint32_t RI_InputCapture, uint32_t RI_InputCaptureRouting)
{
  uint32_t tmpreg = 0;

  /* Check the parameters */
  assert_param(IS_RI_INPUTCAPTURE(RI_InputCapture));
  assert_param(IS_RI_INPUTCAPTURE_ROUTING(RI_InputCaptureRouting));

  /* Get the old register value */
  tmpreg = RI->ICR;

  /* Select input captures to be routed */
  tmpreg |= (RI_InputCapture);

  if((RI_InputCapture & RI_InputCapture_IC1) == RI_InputCapture_IC1)
  {
    /* Clear the input capture select bits */
    tmpreg &= (uint32_t)(~IC_ROUTING_MASK);

    /* Set RI_InputCaptureRouting bits  */
    tmpreg |= (uint32_t)( RI_InputCaptureRouting);
  }

  if((RI_InputCapture & RI_InputCapture_IC2) == RI_InputCapture_IC2)
  {
    /* Clear the input capture select bits */
    tmpreg &= (uint32_t)(~(IC_ROUTING_MASK << 4));

    /* Set RI_InputCaptureRouting bits  */
    tmpreg |= (uint32_t)( (RI_InputCaptureRouting << 4));
  }

  if((RI_InputCapture & RI_InputCapture_IC3) == RI_InputCapture_IC3)
  {
    /* Clear the input capture select bits */
    tmpreg &= (uint32_t)(~(IC_ROUTING_MASK << 8));

    /* Set RI_InputCaptureRouting bits  */
    tmpreg |= (uint32_t)( (RI_InputCaptureRouting << 8));
  }

  if((RI_InputCapture & RI_InputCapture_IC4) == RI_InputCapture_IC4)
  {

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
亚洲第一主播视频| 成人一级黄色片| 国产精品996| 日本韩国精品在线| 久久久www成人免费无遮挡大片| 亚洲综合丝袜美腿| 国产凹凸在线观看一区二区| 7777精品伊人久久久大香线蕉超级流畅| www亚洲一区| 老司机精品视频线观看86| 91麻豆国产自产在线观看| 欧美精品一区二区蜜臀亚洲| 亚洲国产一二三| 色婷婷精品大在线视频| 久久久不卡网国产精品二区| 美女性感视频久久| 欧美亚洲国产一区二区三区va| 亚洲国产精品黑人久久久| 日韩国产欧美一区二区三区| 在线观看91视频| 中文字幕在线观看一区二区| 国产精品一级片在线观看| 欧美一级黄色录像| 亚洲一区中文在线| 色婷婷综合久久| 国产精品初高中害羞小美女文| 国产美女在线精品| 亚洲精品在线电影| 精品亚洲porn| 日韩区在线观看| 久久国产三级精品| 91精品国产91久久久久久一区二区| 亚洲国产精品一区二区www| 色猫猫国产区一区二在线视频| 国产精品久久三| 成人a区在线观看| 久久精品视频一区二区三区| 国产一区二区三区免费看| 亚洲精品一区二区三区精华液| 麻豆一区二区三区| 日韩免费观看2025年上映的电影| 久久99精品一区二区三区| 亚洲精品在线一区二区| 国产成人自拍网| 国产精品青草综合久久久久99| 成人黄色国产精品网站大全在线免费观看 | 久久综合99re88久久爱| 激情综合网av| 久久精品欧美一区二区三区不卡| 国产精品69毛片高清亚洲| 国产精品日日摸夜夜摸av| 91麻豆国产福利精品| 一个色在线综合| 日韩亚洲欧美一区| 国产福利一区在线| 玉足女爽爽91| 日韩一区二区三区在线| 国产精品1区2区| 亚洲欧美日韩国产一区二区三区 | 国产精品美女久久久久久久久| 色综合久久久久久久久久久| 亚洲综合免费观看高清完整版在线 | 久久久久久久电影| 色久综合一二码| 久久国产欧美日韩精品| 日本一区二区三区视频视频| 欧美亚洲日本一区| 国产一区二区在线观看视频| 中文字幕日韩精品一区| 91精品国产综合久久久久久| 国产成人午夜电影网| 一区二区三区四区在线| 日韩你懂的在线播放| 高清视频一区二区| 视频一区欧美精品| 国产精品萝li| 日韩欧美一区二区久久婷婷| 高清国产一区二区| 天天综合色天天| 亚洲欧美国产高清| 久久久精品一品道一区| 欧美精品久久天天躁| 成人永久免费视频| 美女网站在线免费欧美精品| 一区二区三区四区亚洲| 久久久久久久综合日本| 91精品中文字幕一区二区三区| 高清久久久久久| 免费观看成人av| 亚洲国产你懂的| 中文字幕一区二区日韩精品绯色| 日韩欧美中文字幕一区| 色狠狠一区二区| 99在线精品观看| 国产麻豆精品在线观看| 免费在线看一区| 亚洲.国产.中文慕字在线| 国产精品久久久久四虎| 精品国产精品一区二区夜夜嗨| 欧美日本在线看| 欧美在线不卡一区| 91视频精品在这里| 成人午夜短视频| 国产福利不卡视频| 麻豆久久久久久| 琪琪久久久久日韩精品| 首页国产欧美日韩丝袜| 亚洲高清一区二区三区| 亚洲一区二区三区视频在线播放 | 国产精品美女久久久久久久久久久 | 69精品人人人人| 欧美色综合天天久久综合精品| 97aⅴ精品视频一二三区| 激情综合色播五月| 蜜臀av一区二区在线观看| 天堂va蜜桃一区二区三区漫画版| 亚洲人成网站影音先锋播放| 亚洲色图丝袜美腿| 国产精品久久国产精麻豆99网站| 国产日韩欧美一区二区三区乱码| 久久亚洲欧美国产精品乐播 | 国产高清无密码一区二区三区| 成人av在线一区二区| 成人高清视频在线观看| 成人丝袜高跟foot| 成人综合在线观看| www.视频一区| 色婷婷国产精品| 欧美日韩一卡二卡| 欧美丰满一区二区免费视频| 91精品国产乱| 久久久国产精华| 亚洲精品成人天堂一二三| 亚洲综合激情另类小说区| 日韩国产一二三区| 国产精品一区二区在线播放 | 欧美日韩一二三| 日韩一区二区精品葵司在线| 欧美精品一区二区三区高清aⅴ| 国产欧美精品国产国产专区| 国产精品久久久久久妇女6080| 日韩码欧中文字| 亚洲va国产天堂va久久en| 日韩电影在线一区| 成熟亚洲日本毛茸茸凸凹| 在线观看国产91| 久久你懂得1024| 亚洲黄色尤物视频| 狠狠色丁香久久婷婷综合丁香| 国产成人福利片| 欧美亚洲综合另类| 久久亚洲精品国产精品紫薇| 国产精品久久午夜夜伦鲁鲁| 天堂va蜜桃一区二区三区| 国产成人午夜精品影院观看视频| 日本精品一区二区三区四区的功能| 51精品秘密在线观看| 国产欧美一区二区精品性色| 一区二区在线看| 国产电影一区二区三区| 欧美主播一区二区三区美女| 日韩欧美国产精品| 一区二区在线免费| 国产成人自拍在线| 制服丝袜激情欧洲亚洲| 国产精品国产三级国产aⅴ中文| 奇米综合一区二区三区精品视频 | 韩国v欧美v亚洲v日本v| 91丨porny丨首页| 欧美mv日韩mv国产网站app| 亚洲女厕所小便bbb| 国产一区二区不卡| 91 com成人网| 亚洲精品美国一| 成人黄色777网| 久久亚洲综合av| 久久av资源网| 欧美久久久久久久久中文字幕| 亚洲精品综合在线| 国产成人精品免费网站| 精品国产一区二区精华| 国产一区二区三区四区五区美女| 欧美日韩国产天堂| 亚洲欧美日本在线| 亚洲欧美日韩中文播放 | 欧美成人猛片aaaaaaa| 一区二区三区不卡视频| 色婷婷精品久久二区二区蜜臂av| 欧美大片一区二区| 国产麻豆视频一区二区| 欧美成人r级一区二区三区| 久久精品国产99| 一区在线播放视频| 欧美日韩精品一区二区三区四区 | 色欧美日韩亚洲| 久久久久综合网| 久久99久久99精品免视看婷婷| 国产午夜一区二区三区| 欧美a一区二区| 91精品国产91热久久久做人人|