lzbp li / mbed-src

Fork of mbed-src by mbed official

Committer:
mbed_official
Date:
Wed Jun 03 09:00:09 2015 +0100
Revision:
558:0880f51c4036
Synchronized with git revision 927c31ab8457cfef0ee8a8316117b7a41fd79133

Full URL: https://github.com/mbedmicro/mbed/commit/927c31ab8457cfef0ee8a8316117b7a41fd79133/

Add WIZwiki-W7500

Who changed what in which revision?

UserRevisionLine numberNew contents of line
mbed_official 558:0880f51c4036 1 /**
mbed_official 558:0880f51c4036 2 ******************************************************************************
mbed_official 558:0880f51c4036 3 * @file
mbed_official 558:0880f51c4036 4 * @author
mbed_official 558:0880f51c4036 5 * @version
mbed_official 558:0880f51c4036 6 * @date
mbed_official 558:0880f51c4036 7 * @brief This file contains all the functions prototypes for the GPIO
mbed_official 558:0880f51c4036 8 * firmware library.
mbed_official 558:0880f51c4036 9 ******************************************************************************
mbed_official 558:0880f51c4036 10 *
mbed_official 558:0880f51c4036 11 ******************************************************************************
mbed_official 558:0880f51c4036 12 */
mbed_official 558:0880f51c4036 13
mbed_official 558:0880f51c4036 14 /* Define to prevent recursive inclusion -------------------------------------*/
mbed_official 558:0880f51c4036 15 #ifndef __W7500X_EXTI_H
mbed_official 558:0880f51c4036 16 #define __W7500X_EXTI_H
mbed_official 558:0880f51c4036 17
mbed_official 558:0880f51c4036 18 #ifdef __cplusplus
mbed_official 558:0880f51c4036 19 extern "C" {
mbed_official 558:0880f51c4036 20 #endif
mbed_official 558:0880f51c4036 21
mbed_official 558:0880f51c4036 22 /* Includes ------------------------------------------------------------------*/
mbed_official 558:0880f51c4036 23 #include "W7500x.h"
mbed_official 558:0880f51c4036 24
mbed_official 558:0880f51c4036 25
mbed_official 558:0880f51c4036 26 /**
mbed_official 558:0880f51c4036 27 * @brief EXTI mode enumeration
mbed_official 558:0880f51c4036 28 */
mbed_official 558:0880f51c4036 29
mbed_official 558:0880f51c4036 30 typedef enum
mbed_official 558:0880f51c4036 31 {
mbed_official 558:0880f51c4036 32 EXTI_Mode_Disable = 0x00,
mbed_official 558:0880f51c4036 33 EXTI_Mode_Interrupt = 0x02
mbed_official 558:0880f51c4036 34 }EXTIMode_TypeDef;
mbed_official 558:0880f51c4036 35
mbed_official 558:0880f51c4036 36 #define IS_EXTI_MODE(MODE) (((MODE) == EXTI_Mode_Rising) || \
mbed_official 558:0880f51c4036 37 ((MODE) == EXTI_Mode_Interrupt))
mbed_official 558:0880f51c4036 38
mbed_official 558:0880f51c4036 39 /**
mbed_official 558:0880f51c4036 40 * @brief EXTI Trigger enumeration
mbed_official 558:0880f51c4036 41 */
mbed_official 558:0880f51c4036 42
mbed_official 558:0880f51c4036 43 typedef enum
mbed_official 558:0880f51c4036 44 {
mbed_official 558:0880f51c4036 45 EXTI_Trigger_Rising = 0x00,
mbed_official 558:0880f51c4036 46 EXTI_Trigger_Falling = 0x01
mbed_official 558:0880f51c4036 47 }EXTITrigger_TypeDef;
mbed_official 558:0880f51c4036 48
mbed_official 558:0880f51c4036 49 #define IS_EXTI_TRIGGER(TRIGGER) (((TRIGGER) == EXTI_Trigger_Rising) || \
mbed_official 558:0880f51c4036 50 ((TRIGGER) == EXTI_Trigger_Falling))
mbed_official 558:0880f51c4036 51
mbed_official 558:0880f51c4036 52 /**
mbed_official 558:0880f51c4036 53 * @brief EXTI Init Structure definition
mbed_official 558:0880f51c4036 54 */
mbed_official 558:0880f51c4036 55
mbed_official 558:0880f51c4036 56 typedef struct
mbed_official 558:0880f51c4036 57 {
mbed_official 558:0880f51c4036 58 uint32_t EXTI_Line; /*!< Specifies the EXTI lines to be enabled or disabled.
mbed_official 558:0880f51c4036 59 This parameter can be any combination of @ref EXTI_Lines */
mbed_official 558:0880f51c4036 60
mbed_official 558:0880f51c4036 61 EXTIMode_TypeDef EXTI_Mode; /*!< Specifies the mode for the EXTI lines.This parameter can be a value of @ref EXTIMode_TypeDef */
mbed_official 558:0880f51c4036 62
mbed_official 558:0880f51c4036 63 EXTITrigger_TypeDef EXTI_Trigger; /*!< Specifies the trigger signal active edge for the EXTI lines.
mbed_official 558:0880f51c4036 64 This parameter can be a value of @ref EXTIMode_TypeDef */
mbed_official 558:0880f51c4036 65
mbed_official 558:0880f51c4036 66 }EXTI_InitTypeDef;
mbed_official 558:0880f51c4036 67
mbed_official 558:0880f51c4036 68 /**
mbed_official 558:0880f51c4036 69 * @}
mbed_official 558:0880f51c4036 70 */
mbed_official 558:0880f51c4036 71
mbed_official 558:0880f51c4036 72 void EXTI_DeInit(void);
mbed_official 558:0880f51c4036 73 void EXTI_Init(PAD_Type Px, EXTI_InitTypeDef* EXTI_InitStruct);
mbed_official 558:0880f51c4036 74 void EXTI_Polarity_Set(PAD_Type Px, uint16_t GPIO_Pin, uint16_t Polarity );
mbed_official 558:0880f51c4036 75 void EXTI_StructInit(EXTI_InitTypeDef* EXTI_InitStruct);
mbed_official 558:0880f51c4036 76 uint32_t EXTI_GetEXTIConfig(PAD_Type Px, uint16_t GPIO_Pin);
mbed_official 558:0880f51c4036 77 uint16_t EXTI_Px_GetEXTEN(PAD_Type Px);
mbed_official 558:0880f51c4036 78 uint16_t EXTI_Px_GetEXTINTPOL(PAD_Type Px);
mbed_official 558:0880f51c4036 79
mbed_official 558:0880f51c4036 80
mbed_official 558:0880f51c4036 81 #ifdef __cplusplus
mbed_official 558:0880f51c4036 82 }
mbed_official 558:0880f51c4036 83 #endif
mbed_official 558:0880f51c4036 84
mbed_official 558:0880f51c4036 85
mbed_official 558:0880f51c4036 86 #endif //__W7500X_EXTI_H