標(biāo)題: 求大神解釋一下C語(yǔ)言宏定義括號(hào)里代碼的意思或作用 [打印本頁(yè)]

作者: Amlee    時(shí)間: 2020-6-4 15:19
標(biāo)題: 求大神解釋一下C語(yǔ)言宏定義括號(hào)里代碼的意思或作用
#define SYS_IPRSTC1_CHIP_RST_Pos                0                                   /*!< GCR_T::IPRSTC1: CHIP_RST Position */
#define SYS_IPRSTC1_CHIP_RST_Msk                (1ul << SYS_IPRSTC1_CHIP_RST_Pos)   /*!< GCR_T::IPRSTC1: CHIP_RST Mask */

/* GCR IPRSTC2 Bit Field Definitions */
#define SYS_IPRSTC2_ADC_RST_Pos                 28                                  /*!< GCR_T::IPRSTC2: ADC_RST Position */
#define SYS_IPRSTC2_ADC_RST_Msk                 (1ul << SYS_IPRSTC2_ADC_RST_Pos)    /*!< GCR_T::IPRSTC2: ADC_RST Mask */

#define SYS_IPRSTC2_CAN0_RST_Pos                24                                  /*!< GCR_T IPRSTC2: CAN0_RS






歡迎光臨 (http://www.torrancerestoration.com/bbs/) Powered by Discuz! X3.1