mbed library sources

Dependents:   Encrypted my_mbed lklk CyaSSL_DTLS_Cellular ... more

Superseded

This library was superseded by mbed-dev - https://os.mbed.com/users/mbed_official/code/mbed-dev/.

Development branch of the mbed library sources. This library is kept in synch with the latest changes from the mbed SDK and it is not guaranteed to work.

If you are looking for a stable and tested release, please import one of the official mbed library releases:

Import librarymbed

The official Mbed 2 C/C++ SDK provides the software platform and libraries to build your applications.

Committer:
mbed_official
Date:
Fri Sep 04 09:30:10 2015 +0100
Revision:
619:034e698bc035
Parent:
targets/cmsis/TARGET_WIZNET/TARGET_W7500x/W7500x_exti.h@558:0880f51c4036
Synchronized with git revision 92d1bfad30082571776c810a56fd471d30514ccf

Full URL: https://github.com/mbedmicro/mbed/commit/92d1bfad30082571776c810a56fd471d30514ccf/

Change directory structure and move files.

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