文档下载 文档下载导航
设为首页 | 加入收藏
搜索 请输入内容:  
 导航当前位置: 文档下载 > 所有分类 > 工程科技 > 电子/电路 > stm32f10x_gpio.h
侵权投诉

stm32f10x_gpio.h

STM32库函数系列

/ ******************** (C) COPYRIGHT 2007 STMicroelectronics ******************** * File Name: stm32f10x_gpio.h * Author: MCD Application Team * Version: V1.0 * Date: 10/ 08/ 2007 * Description: This file contains all the functions prototypes for the * GPIO firmware library. ******************************************************************************** * THE PRESENT SOFTWARE 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 SOFTWARE AND/ OR THE USE MADE BY CUSTOMERS OF THE CODING * INFORMATION CONTAINED HEREIN IN CONNECTION WITH THEIR PRODUCTS. *******************************************************************************// * Define to prevent recursive inclusion - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - */#ifndef __STM32F10x_GPIO_H#define __STM32F10x_GPIO_H/ * Includes - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - */#include"stm32f10x_map.h"/ * Exported types - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - *// * Output Maximum frequency selection - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - */ typedef enum{ GPIO_Speed_10MHz= 1, GPIO_Speed_2MHz, GPIO_Speed_50MHz}GPIOSpeed_TypeDef;#define IS_GPIO_SPEED(SPEED) ((SPEED== GPIO_Speed_10MHz)|| (SPEED== GPIO_Speed_2MHz)||\ (SPEED== GPIO_Speed_50MHz))/ * Configuration Mode enumeration - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - */ typedef enum{ GPIO_Mode_AIN= 0x0, GPIO_Mode_IN_FLOATING= 0x04, GPIO_Mode_IPD= 0x28, GPIO_Mode_IPU= 0x48, GPIO_Mode_Out_OD= 0x14, GPIO_Mode_Out_PP= 0x10, GPIO_Mode_AF_OD= 0x1C, GPIO_Mode_AF_PP= 0x18}GPIOMode_TypeDef;#define IS_GPIO_MODE(MODE) ((MODE (MODE (MODE (MODE/ * GPIO Init structure definition */ typedef struct{ u16 GPIO_Pin; GPIOSpeed_TypeDef GPIO_Speed; GPIOMode_TypeDef GPIO_Mode;}GPIO_InitTypeDef;/ * Bit_SET and Bit_RESET enumeration - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - */ typedef enum{ Bit_RESET= 0, Bit_SET}BitAction;#define IS_GPIO_BIT_ACTION(ACTION) ((ACTION== Bit_RESET)|| (ACTION== Bit_SET))/ * Exported constants - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - *// * GPIO pins define - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - */======== GPIO_Mode_AIN)|| (MODE== GPIO_Mode_IN_FLOATING)||\ GPIO_Mode_IPD)|| (MODE== GPIO_Mode_IPU)||\ GPIO_Mode_Out_OD)|| (MODE== GPIO_Mode_Out_PP)||\ GPIO_Mode_AF_OD)|| (MODE

== GPIO_Mode_AF_PP))

Page 1

stm32f10x_gpio.h

第1页

你可能喜欢

热门文档

相关文档

  • stm32f10x_gpio.c

    / *** (C) COPYRIGHT 2007 STMicroelectronics *** * File Name : stm32f10x_gpio.c * Author : MCD Application Team * Version : V1.0 * Date : 10/...

  • stm32f10x_iwdg.h

    stm32f10x_exti.h stm32f10x_flash.c stm32f10x_gpio.c stm32f10x_gpio.h stm32f10x_i2c.c stm32f10x_it.h stm32f10x_iwdg.c stm32f10x_map.h stm32f10x_nvic.c...

  • stm32f10x_rtc.h

    214页 1财富值 RTC 9页 免费 RTC 42页 免费 stm32f10x_it.h 2页 2财富值喜欢此文档的还喜欢 STM32F10x_IWDG 4页 免费 STM32F10x_GPIO 16页 1财富值 ...

  • stm32f10x_wwdg.h

    stm32f10x_exti.h stm32f10x_flash.c stm32f10x_gpio.c stm32f10x_gpio.h stm32f10x_i2c.c stm32f10x_it.h stm32f10x_iwdg.c stm32f10x_iwdg.h stm32f10x_map.h...

  • STM32F10x_GPIO

    STM32F10x_GPIO_信息与通信_工程科技_专业资料。库函数10.1 10.2 No 1 2 ...stm2f10x_gpio.h”: typedef struct { u16 GPIO_Pin; GPIOSpeed_TypeDef GPIO...

  • GPIO在MDK中的使用

    GPIO在MDK中的使用_信息与通信_工程科技_专业资料。STM32 学习 四)——GPIO 在 MDK 中的使用 学习(四 使用 GPIO 时,我们常用到的是:stm32f10x_gpio.h 和 ...

  • STM32F10x外设库使用

    外设库同时也提 供了一些便于记忆和使用的 GPIO 操作函数和便于记忆的宏定义,以下内容来自外设库源代码的 stm32f10x_gpio.h: void GPIO_DeInit(GPIO_TypeDef* ...

  • STM32—GPIO输出

    我的第一个 STM32 程序,使用 MDK Gpio.c 程序如下,其它程序使用 keil 自带的文件 #include"stm32f10x_lib.h" GPIO_InitTypeDef GPIO_InitStructure; //在“...

  • GPIO库函数

    GPIO库函数_数学_自然科学_专业资料。通用输入/输出(GPIO) GPIO 寄存器结构 : GPIO_TypeDef 和 AFIO_TypeDef,在文件“stm32f10x_map.h”中定义如下: typedef ...

  • 第8讲 GPIO原理与配置方法

    stm32f10x_gpio.c -stm32f10x_gpio.h GPIO输入输出配置重要函数: void GPIO_Init(GPIO_TypeDef * GPIOx, GPIO_InitTypeDef * GPIO_InitStruct); uint8_t GPIO_...

站点地图 | 文档上传 | 侵权投诉 | 手机版
本站所有资源均来自互联网,本站只负责收集和整理,均不承担任何法律责任,如有侵权等其它行为请联系我们.
文档下载 Copyright 2013 doc.guandang.net All Rights Reserved.  -  email