STM32769I_EVAL BSP User Manual: stm32f769i_eval_io.c File Reference

STM32769I_EVAL BSP

stm32f769i_eval_io.c File Reference

This file provides a set of functions needed to manage the IO pins on STM32F769I-EVAL evaluation board. More...

Go to the source code of this file.

Functions

uint8_t BSP_IO_Init (void)
 Initializes and configures the IO functionalities and configures all necessary hardware resources (MFX, ...).
uint8_t BSP_IO_DeInit (void)
 DeInit allows Mfx Initialization to be executed again.
uint32_t BSP_IO_ITGetStatus (uint32_t IoPin)
 Gets the selected pins IT status.
void BSP_IO_ITClear (void)
 Clears all the IO IT pending bits.
void BSP_IO_ITClearPin (uint32_t IO_Pins_To_Clear)
 Clear only one or a selection of IO IT pending bits.
uint8_t BSP_IO_ConfigPin (uint32_t IoPin, IO_ModeTypedef IoMode)
 Configures the IO pin(s) according to IO mode structure value.
uint8_t BSP_IO_ConfigIrqOutPin (uint8_t IoIrqOutPinPolarity, uint8_t IoIrqOutPinType)
 Sets the IRQ_OUT pin polarity and type.
void BSP_IO_WritePin (uint32_t IoPin, BSP_IO_PinStateTypeDef PinState)
 Sets the selected pins state.
uint32_t BSP_IO_ReadPin (uint32_t IoPin)
 Gets the selected pins current state.
void BSP_IO_TogglePin (uint32_t IoPin)
 Toggles the selected pins state.

Variables

static IO_DrvTypeDef * IoDrv = NULL
static uint8_t mfxstm32l152Identifier

Detailed Description

This file provides a set of functions needed to manage the IO pins on STM32F769I-EVAL evaluation board.

Author:
MCD Application Team
Version:
V2.0.1
Date:
06-April-2017
  How To use this driver:
  -----------------------
   - This driver is used to drive the IO module of the STM32F769I-EVAL evaluation
     board.
   - The MFXSTM32L152 IO expander device component driver must be included with this
     driver in order to run the IO functionalities commanded by the IO expander (MFX)
     device mounted on the evaluation board.

  Driver description:
  -------------------
  + Initialization steps:
     o Initialize the IO module using the BSP_IO_Init() function. This 
       function includes the MSP layer hardware resources initialization and the
       communication layer configuration to start the IO functionalities use.    
  
  + IO functionalities use
     o The IO pin mode is configured when calling the function BSP_IO_ConfigPin(), you 
       must specify the desired IO mode by choosing the "IO_ModeTypedef" parameter 
       predefined value.
     o If an IO pin is used in interrupt mode, the function BSP_IO_ITGetStatus() is 
       needed to get the interrupt status. To clear the IT pending bits, you should 
       call the function BSP_IO_ITClear() with specifying the IO pending bit to clear.
     o The IT is handled using the corresponding external interrupt IRQ handler,
       the user IT callback treatment is implemented on the same external interrupt
       callback.
     o The IRQ_OUT pin (common for all functionalities: JOY, SD, LEDs, etc)  can be  
       configured using the function BSP_IO_ConfigIrqOutPin()
     o To get/set an IO pin combination state you can use the functions 
       BSP_IO_ReadPin()/BSP_IO_WritePin() or the function BSP_IO_TogglePin() to toggle the pin 
       state.  
  
Attention:

© COPYRIGHT(c) 2017 STMicroelectronics

Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: 1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. 2. Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution. 3. Neither the name of STMicroelectronics nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission.

THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.

Definition in file stm32f769i_eval_io.c.

Generated on Thu May 25 2017 11:03:12 for STM32769I_EVAL BSP User Manual by   doxygen 1.7.6.1