Back to home page

LXR

 
 

    


File indexing completed on 2025-05-11 08:23:05

0001 /**
0002  * @file
0003  * @ingroup stm32f4_gpio
0004  * @brief STM32F10XXX GPIO support.
0005  */
0006 
0007 /*
0008  * Copyright (c) 2013 Christian Mauderer.  All rights reserved.
0009  *
0010  * The license and distribution terms for this file may be
0011  * found in the file LICENSE in this distribution or at
0012  * http://www.rtems.org/license/LICENSE.
0013  */
0014 
0015 #ifndef LIBBSP_ARM_STM32F4_STM32F10XXX_GPIO_H
0016 #define LIBBSP_ARM_STM32F4_STM32F10XXX_GPIO_H
0017 
0018 #include <bsp/utility.h>
0019 
0020 /**
0021  * @defgroup stm32f4_gpio GPIO Support
0022  * @ingroup stm32f4_io
0023  * @brief GPIO Support
0024  * @{
0025  */
0026 
0027 typedef struct {
0028     uint32_t cr[2];
0029     uint32_t idr;
0030     uint32_t odr;
0031     uint32_t bsrr;
0032     uint32_t brr;
0033     uint32_t lckr;
0034 } stm32f4_gpio;
0035 
0036 typedef struct {
0037     uint32_t evcr;
0038     uint32_t mapr;
0039     uint32_t exticr[4];
0040     uint32_t mapr2;
0041 } stm32f4_afio;
0042 
0043 /** @} */
0044 
0045 #endif /* LIBBSP_ARM_STM32F4_STM32F10XXX_GPIO_H */