beary 发表于 2015-9-21 23:02:07

GPIO_TypeDef中BRR这个成员没有了 用什么代替呢?

                                                                GPIO_TypeDef中BRR这个成员没有了 用什么代替呢?                                                       

typedef struct
{
__IO uint32_t MODER;    /*!< GPIO port mode register,               Address offset: 0x00      */
__IO uint32_t OTYPER;   /*!< GPIO port output type register,      Address offset: 0x04      */
__IO uint32_t OSPEEDR;/*!< GPIO port output speed register,       Address offset: 0x08      */
__IO uint32_t PUPDR;    /*!< GPIO port pull-up/pull-down register,Address offset: 0x0C      */
__IO uint32_t IDR;      /*!< GPIO port input data register,         Address offset: 0x10      */
__IO uint32_t ODR;      /*!< GPIO port output data register,      Address offset: 0x14      */
__IO uint32_t BSRR;   /*!< GPIO port bit set/reset register,      Address offset: 0x18      */
__IO uint32_t LCKR;   /*!< GPIO port configuration lock register, Address offset: 0x1C      */
__IO uint32_t AFR;   /*!< GPIO alternate function registers,   Address offset: 0x20-0x24 */
} GPIO_TypeDef;


mark0668 发表于 2015-9-22 00:22:10

__IO uint32_t BSRR;          都在这,高16位和低16位,你那个只是分开了,这个是集成在32位里了
页: [1]
查看完整版本: GPIO_TypeDef中BRR这个成员没有了 用什么代替呢?