Rev 1 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 1 | Rev 196 | ||
---|---|---|---|
Line 1... | Line 1... | ||
1 | /******************** (C) COPYRIGHT 2006 STMicroelectronics ******************** |
1 | /******************** (C) COPYRIGHT 2008 STMicroelectronics ******************** |
2 | * File Name : 91x_gpio.h |
2 | * File Name : 91x_gpio.h |
3 | * Author : MCD Application Team |
3 | * Author : MCD Application Team |
- | 4 | * Version : V2.1 |
|
4 | * Date First Issued : 05/18/2006 : Version 1.0 |
5 | * Date : 12/22/2008 |
5 | * Description : This file contains all the functions prototypes for the |
6 | * Description : This file contains all the functions prototypes for the |
6 | * GPIO software library. |
7 | * GPIO firmware library. |
7 | ******************************************************************************** |
- | |
8 | * History: |
- | |
9 | * 05/22/2007 : Version 1.2 |
- | |
10 | * 05/24/2006 : Version 1.1 |
- | |
11 | * 05/18/2006 : Version 1.0 |
- | |
12 | ******************************************************************************** |
8 | ******************************************************************************** |
13 | * THE PRESENT SOFTWARE WHICH IS FOR GUIDANCE ONLY AIMS AT PROVIDING CUSTOMERS WITH |
9 | * THE PRESENT SOFTWARE WHICH IS FOR GUIDANCE ONLY AIMS AT PROVIDING CUSTOMERS WITH |
14 | * CODING INFORMATION REGARDING THEIR PRODUCTS IN ORDER FOR THEM TO SAVE TIME. AS |
10 | * CODING INFORMATION REGARDING THEIR PRODUCTS IN ORDER FOR THEM TO SAVE TIME. AS |
15 | * A RESULT, STMICROELECTRONICS SHALL NOT BE HELD LIABLE FOR ANY DIRECT, INDIRECT |
11 | * A RESULT, STMICROELECTRONICS SHALL NOT BE HELD LIABLE FOR ANY DIRECT, INDIRECT |
16 | * OR CONSEQUENTIAL DAMAGES WITH RESPECT TO ANY CLAIMS ARISING FROM THE CONTENT |
12 | * OR CONSEQUENTIAL DAMAGES WITH RESPECT TO ANY CLAIMS ARISING FROM THE CONTENT |
Line 30... | Line 26... | ||
30 | typedef struct |
26 | typedef struct |
31 | { |
27 | { |
32 | u8 GPIO_Pin; |
28 | u8 GPIO_Pin; |
33 | u8 GPIO_Direction; |
29 | u8 GPIO_Direction; |
34 | u8 GPIO_Type; |
30 | u8 GPIO_Type; |
35 | u8 GPIO_IPConnected; |
31 | u8 GPIO_IPInputConnected; |
36 | u16 GPIO_Alternate; |
32 | u16 GPIO_Alternate; |
37 | }GPIO_InitTypeDef; |
33 | }GPIO_InitTypeDef; |
Line 38... | Line 34... | ||
38 | 34 | ||
39 | /* Bit_SET and Bit_RESET enumeration */ |
35 | /* Bit_SET and Bit_RESET enumeration */ |
Line 59... | Line 55... | ||
59 | #define GPIO_PinOutput 0x01 |
55 | #define GPIO_PinOutput 0x01 |
Line 60... | Line 56... | ||
60 | 56 | ||
61 | #define GPIO_Type_PushPull 0x00 |
57 | #define GPIO_Type_PushPull 0x00 |
Line 62... | Line 58... | ||
62 | #define GPIO_Type_OpenCollector 0x01 |
58 | #define GPIO_Type_OpenCollector 0x01 |
63 | 59 | ||
Line 64... | Line 60... | ||
64 | #define GPIO_IPConnected_Disable 0x00 |
60 | #define GPIO_IPInputConnected_Disable 0x00 |
65 | #define GPIO_IPConnected_Enable 0x01 |
61 | #define GPIO_IPInputConnected_Enable 0x01 |
66 | 62 | ||
67 | #define GPIO_InputAlt1 0x00 |
63 | #define GPIO_InputAlt1 0x00 |
Line 91... | Line 87... | ||
91 | 87 | ||
Line 92... | Line 88... | ||
92 | 88 |