[英]What does RESERVERD0 in Registers like USART1 in stm32f103 mean in stm32f10x.h header file? And how do I define a custom struct for the same?
所以最近我開始對一個 stm32f103 設備進行裸機編程,我在 Keil uVision5 中引用了一個內置文件“stm32f10x.h”,我遇到了 USART 結構的TypeDef ,它就像,
typedef struct
{
__IO uint16_t SR;
uint16_t RESERVED0;
__IO uint16_t DR;
uint16_t RESERVED1;
__IO uint16_t BRR;
uint16_t RESERVED2;
__IO uint16_t CR1;
uint16_t RESERVED3;
__IO uint16_t CR2;
uint16_t RESERVED4;
__IO uint16_t CR3;
uint16_t RESERVED5;
__IO uint16_t GTPR;
uint16_t RESERVED6;
} USART_TypeDef;
而且我找不到這些RESERVEDx寄存器的任何聲明或引用。 如果我想為此寄存器定義一個自定義結構,我該怎么做? 提前致謝:)
它們不是RESERVEDx
寄存器,只是不應觸及的 32 位寄存器的高位字。 簡單地忽略它們,不要觸摸它們,不要去想它們。
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.