Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependents: DISCO_L4R9I-LCD-demo
stm32l4r9i_discovery_io.h
00001 /** 00002 ****************************************************************************** 00003 * @file stm32l4r9i_discovery_io.h 00004 * @author MCD Application Team 00005 * @brief This file contains the common defines and functions prototypes for 00006 * the stm32l4r9i_discovery_io.c driver. 00007 ****************************************************************************** 00008 * @attention 00009 * 00010 * <h2><center>© Copyright (c) 2017 STMicroelectronics. 00011 * All rights reserved.</center></h2> 00012 * 00013 * This software component is licensed by ST under BSD 3-Clause license, 00014 * the "License"; You may not use this file except in compliance with the 00015 * License. You may obtain a copy of the License at: 00016 * opensource.org/licenses/BSD-3-Clause 00017 * 00018 ****************************************************************************** 00019 */ 00020 00021 /* Define to prevent recursive inclusion -------------------------------------*/ 00022 #ifndef __STM32L4R9I_DISCO_IO_H 00023 #define __STM32L4R9I_DISCO_IO_H 00024 00025 #ifdef __cplusplus 00026 extern "C" { 00027 #endif 00028 00029 /* Includes ------------------------------------------------------------------*/ 00030 #include "stm32l4r9i_discovery.h" 00031 #include "../Components/mfxstm32l152/mfxstm32l152.h" 00032 00033 /** @addtogroup BSP 00034 * @{ 00035 */ 00036 00037 /** @addtogroup STM32L4R9I_DISCOVERY 00038 * @{ 00039 */ 00040 00041 /** @addtogroup STM32L4R9I_DISCOVERY_IO 00042 * @{ 00043 */ 00044 00045 /* Exported types ------------------------------------------------------------*/ 00046 00047 /** @defgroup STM32L4R9I_DISCOVERY_IO_Exported_Types Exported Types 00048 * @{ 00049 */ 00050 typedef enum 00051 { 00052 IO_OK = 0x00, 00053 IO_ERROR = 0x01, 00054 IO_TIMEOUT = 0x02 00055 }IO_StatusTypeDef; 00056 /** 00057 * @} 00058 */ 00059 00060 /** @defgroup STM32L4R9I_DISCOVERY_IO_Exported_Constants Exported Constants 00061 * @{ 00062 */ 00063 #define IO_PIN_0 ((uint32_t)0x00000001) 00064 #define IO_PIN_1 ((uint32_t)0x00000002) 00065 #define IO_PIN_2 ((uint32_t)0x00000004) 00066 #define IO_PIN_3 ((uint32_t)0x00000008) 00067 #define IO_PIN_4 ((uint32_t)0x00000010) 00068 #define IO_PIN_5 ((uint32_t)0x00000020) 00069 #define IO_PIN_6 ((uint32_t)0x00000040) 00070 #define IO_PIN_7 ((uint32_t)0x00000080) 00071 #define IO_PIN_8 ((uint32_t)0x00000100) 00072 #define IO_PIN_9 ((uint32_t)0x00000200) 00073 #define IO_PIN_10 ((uint32_t)0x00000400) 00074 #define IO_PIN_11 ((uint32_t)0x00000800) 00075 #define IO_PIN_12 ((uint32_t)0x00001000) 00076 #define IO_PIN_13 ((uint32_t)0x00002000) 00077 #define IO_PIN_14 ((uint32_t)0x00004000) 00078 #define IO_PIN_15 ((uint32_t)0x00008000) 00079 #define AGPIO_PIN_0 ((uint32_t)0x00010000) 00080 #define AGPIO_PIN_1 ((uint32_t)0x00020000) 00081 #define AGPIO_PIN_2 ((uint32_t)0x00040000) 00082 #define IO_PIN_ALL ((uint32_t)0x0003FFFF) 00083 /** 00084 * @} 00085 */ 00086 00087 /* Exported functions --------------------------------------------------------*/ 00088 00089 /** @defgroup STM32L4R9I_DISCOVERY_IO_Exported_Functions Exported Functions 00090 * @{ 00091 */ 00092 00093 uint8_t BSP_IO_Init(void); 00094 uint8_t BSP_IO_DeInit(void); 00095 uint32_t BSP_IO_ITGetStatus(uint32_t IO_Pin); 00096 void BSP_IO_ITClear(uint32_t IO_Pin); 00097 uint8_t BSP_IO_ConfigPin(uint32_t IO_Pin, IO_ModeTypedef IO_Mode); 00098 void BSP_IO_WritePin(uint32_t IO_Pin, uint8_t PinState); 00099 uint32_t BSP_IO_ReadPin(uint32_t IO_Pin); 00100 void BSP_IO_TogglePin(uint32_t IO_Pin); 00101 00102 /** 00103 * @} 00104 */ 00105 00106 /** 00107 * @} 00108 */ 00109 00110 /** 00111 * @} 00112 */ 00113 00114 /** 00115 * @} 00116 */ 00117 00118 #ifdef __cplusplus 00119 } 00120 #endif 00121 00122 #endif /* __STM32L4R9I_DISCOVERY_IO_H */ 00123 00124 /************************ (C) COPYRIGHT STMicroelectronics *****END OF FILE****/
Generated on Wed Jul 13 2022 19:15:17 by
