cc y / mbed

Fork of mbed by mbed official

Committer:
Kojto
Date:
Tue Jun 09 14:29:26 2015 +0100
Revision:
101:7cff1c4259d7
Release 101 of the mbed library

Changes:
- new platform: APPNEARME_MICRONFCBOARD, MTS_DRAGONFLY_F411RE, MAX32600MBED, WIZwiki_W7500
- Silabs memory optimization in gpio, pwm fixes
- SPI - ssel documentation fixes and its use

Who changed what in which revision?

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