Rajath Ravi / Mbed 2 deprecated ravi_blinkycode

Dependencies:   mbed

Embed: (wiki syntax)

« Back to documentation index

Show/hide line numbers stm32f4xx_syscfg_mort.h Source File

stm32f4xx_syscfg_mort.h

00001 /**
00002   ******************************************************************************
00003   * @file    stm32f4xx_syscfg.h
00004   * @author  MCD Application Team
00005   * @version V1.8.0
00006   * @date    04-November-2016
00007   * @brief   This file contains all the functions prototypes for the SYSCFG_MORT firmware
00008   *          library. 
00009   ******************************************************************************
00010   * @attention
00011   *
00012   * <h2><center>&copy; COPYRIGHT 2016 STMicroelectronics</center></h2>
00013   *
00014   * Licensed under MCD-ST Liberty SW License Agreement V2, (the "License");
00015   * You may not use this file except in compliance with the License.
00016   * You may obtain a copy of the License at:
00017   *
00018   *        http://www.st.com/software_license_agreement_liberty_v2
00019   *
00020   * Unless required by applicable law or agreed to in writing, software 
00021   * distributed under the License is distributed on an "AS IS" BASIS, 
00022   * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
00023   * See the License for the specific language governing permissions and
00024   * limitations under the License.
00025   *
00026   ******************************************************************************
00027   */
00028 
00029 /* Define to prevent recursive inclusion -------------------------------------*/
00030 #ifndef __STM32F4xx_SYSCFG_H
00031 #define __STM32F4xx_SYSCFG_H
00032 
00033 #ifdef __cplusplus
00034  extern "C" {
00035 #endif
00036 
00037 /* Includes ------------------------------------------------------------------*/
00038 #include "stm32f4xx_mort2.h"
00039 
00040 
00041 
00042 /** @defgroup SYSCFG_EXTI_Port_Sources 
00043   * @{
00044   */ 
00045 #define EXTI_PortSourceGPIOA_MORT       ((uint8_t)0x00)
00046 #define EXTI_PortSourceGPIOB_MORT       ((uint8_t)0x01)
00047 #define EXTI_PortSourceGPIOC_MORT       ((uint8_t)0x02)
00048 #define EXTI_PortSourceGPIOD_MORT       ((uint8_t)0x03)
00049 #define EXTI_PortSourceGPIOE_MORT       ((uint8_t)0x04)
00050 #define EXTI_PortSourceGPIOF_MORT       ((uint8_t)0x05)
00051 #define EXTI_PortSourceGPIOG_MORT       ((uint8_t)0x06)
00052 #define EXTI_PortSourceGPIOH_MORT       ((uint8_t)0x07)
00053 #define EXTI_PortSourceGPIOI_MORT       ((uint8_t)0x08)
00054 #define EXTI_PortSourceGPIOJ_MORT       ((uint8_t)0x09)
00055 #define EXTI_PortSourceGPIOK_MORT       ((uint8_t)0x0A)
00056 
00057 #define IS_EXTI_PORT_SOURCE_MORT(PORTSOURCE) (((PORTSOURCE) == EXTI_PortSourceGPIOA_MORT) || \
00058                                          ((PORTSOURCE) == EXTI_PortSourceGPIOB_MORT) || \
00059                                          ((PORTSOURCE) == EXTI_PortSourceGPIOC_MORT) || \
00060                                          ((PORTSOURCE) == EXTI_PortSourceGPIOD_MORT) || \
00061                                          ((PORTSOURCE) == EXTI_PortSourceGPIOE_MORT) || \
00062                                          ((PORTSOURCE) == EXTI_PortSourceGPIOF_MORT) || \
00063                                          ((PORTSOURCE) == EXTI_PortSourceGPIOG_MORT) || \
00064                                          ((PORTSOURCE) == EXTI_PortSourceGPIOH_MORT) || \
00065                                          ((PORTSOURCE) == EXTI_PortSourceGPIOI_MORT) || \
00066                                          ((PORTSOURCE) == EXTI_PortSourceGPIOJ_MORT) || \
00067                                          ((PORTSOURCE) == EXTI_PortSourceGPIOK_MORT))
00068                                          
00069 /**
00070   * @}
00071   */ 
00072 
00073 
00074 /** @defgroup SYSCFG_EXTI_Pin_Sources 
00075   * @{
00076   */ 
00077 #define EXTI_PinSource0_MORT            ((uint8_t)0x00)
00078 #define EXTI_PinSource1_MORT            ((uint8_t)0x01)
00079 #define EXTI_PinSource2_MORT            ((uint8_t)0x02)
00080 #define EXTI_PinSource3_MORT            ((uint8_t)0x03)
00081 #define EXTI_PinSource4_MORT            ((uint8_t)0x04)
00082 #define EXTI_PinSource5_MORT            ((uint8_t)0x05)
00083 #define EXTI_PinSource6_MORT            ((uint8_t)0x06)
00084 #define EXTI_PinSource7_MORT            ((uint8_t)0x07)
00085 #define EXTI_PinSource8_MORT            ((uint8_t)0x08)
00086 #define EXTI_PinSource9_MORT            ((uint8_t)0x09)
00087 #define EXTI_PinSource10_MORT           ((uint8_t)0x0A)
00088 #define EXTI_PinSource11_MORT           ((uint8_t)0x0B)
00089 #define EXTI_PinSource12_MORT           ((uint8_t)0x0C)
00090 #define EXTI_PinSource13_MORT           ((uint8_t)0x0D)
00091 #define EXTI_PinSource14_MORT           ((uint8_t)0x0E)
00092 #define EXTI_PinSource15_MORT           ((uint8_t)0x0F)
00093 #define IS_EXTI_PIN_SOURCE_MORT(PINSOURCE) (((PINSOURCE) == EXTI_PinSource0_MORT)  || \
00094                                        ((PINSOURCE) == EXTI_PinSource1_MORT)  || \
00095                                        ((PINSOURCE) == EXTI_PinSource2_MORT)  || \
00096                                        ((PINSOURCE) == EXTI_PinSource3_MORT)  || \
00097                                        ((PINSOURCE) == EXTI_PinSource4_MORT)  || \
00098                                        ((PINSOURCE) == EXTI_PinSource5_MORT)  || \
00099                                        ((PINSOURCE) == EXTI_PinSource6_MORT)  || \
00100                                        ((PINSOURCE) == EXTI_PinSource7_MORT)  || \
00101                                        ((PINSOURCE) == EXTI_PinSource8_MORT)  || \
00102                                        ((PINSOURCE) == EXTI_PinSource9_MORT)  || \
00103                                        ((PINSOURCE) == EXTI_PinSource10_MORT) || \
00104                                        ((PINSOURCE) == EXTI_PinSource11_MORT) || \
00105                                        ((PINSOURCE) == EXTI_PinSource12_MORT) || \
00106                                        ((PINSOURCE) == EXTI_PinSource13_MORT) || \
00107                                        ((PINSOURCE) == EXTI_PinSource14_MORT) || \
00108                                        ((PINSOURCE) == EXTI_PinSource15_MORT))
00109 /**
00110   * @}
00111   */ 
00112 
00113 
00114 
00115 
00116 
00117 /** @defgroup SYSCFG_ETHERNET_Media_Interface 
00118   * @{
00119   */ 
00120 #define SYSCFG_ETH_MediaInterface_MII_MORT    ((uint32_t)0x00000000)
00121 #define SYSCFG_ETH_MediaInterface_RMII_MORT   ((uint32_t)0x00000001)
00122 
00123 #define IS_SYSCFG_ETH_MEDIA_INTERFACE_MORT(INTERFACE) (((INTERFACE) == SYSCFG_ETH_MediaInterface_MII_MORT) || \
00124                                                  ((INTERFACE) == SYSCFG_ETH_MediaInterface_RMII_MORT))
00125 /**
00126   * @}
00127   */ 
00128 
00129 /**
00130   * @}
00131   */ 
00132 
00133 /* Exported macro ------------------------------------------------------------*/
00134 /* Exported functions --------------------------------------------------------*/ 
00135  
00136 void       SYSCFG_DeInit_mort(void);
00137 
00138 void       SYSCFG_EXTILineConfig_mort(uint8_t EXTI_PortSourceGPIOx, uint8_t EXTI_PinSourcex);
00139 void       SYSCFG_ETH_MediaInterfaceConfig_mort(uint32_t SYSCFG_ETH_MediaInterface); 
00140 void       SYSCFG_CompensationCellCmd_mort(FunctionalState NewState); 
00141 FlagStatus SYSCFG_GetCompensationCellStatus_mort(void);
00142 
00143 
00144 #ifdef __cplusplus
00145 }
00146 #endif
00147 
00148 #endif /*__STM32F4xx_SYSCFG_H */
00149 
00150 /**
00151   * @}
00152   */ 
00153 
00154 /**
00155   * @}
00156   */ 
00157 
00158 /************************ (C) COPYRIGHT STMicroelectronics *****END OF FILE****/
00159 
00160 
00161 
00162 
00163 
00164