11 CCM->CCGR1 = 0XFFFFFFFF; 12 CCM->CCGR2 = 0XFFFFFFFF; 13 CCM->CCGR3 = 0XFFFFFFFF; 14 CCM->CCGR4 = 0XFFFFFFFF; 15 CCM->CCGR5 = 0XFFFFFFFF; 16 CCM->CCGR6 = 0XFFFFFFFF; 17 } 18 19 /* 20 * @description : 初始化LED对应的GPIO 21 * @param : 无 22 * @return : 无...
12 CCM->CCGR0 = 0XFFFFFFFF; 13 CCM->CCGR1 = 0XFFFFFFFF; 14 15 CCM->CCGR2 = 0XFFFFFFFF; 16 CCM->CCGR3 = 0XFFFFFFFF; 17 CCM->CCGR4 = 0XFFFFFFFF; 18 CCM->CCGR5 = 0XFFFFFFFF; 19 CCM->CCGR6 = 0XFFFFFFFF; 20 21 } 22 23 /* 24 * @description : 初始化LED对应的GPIO 2...
4 #define CCM_CCGR0 *((volatile unsigned int *)0X020C4068) 5 #define CCM_CCGR1 *((volatile unsigned int *)0X020C406C) 6 #define CCM_CCGR2 *((volatile unsigned int *)0X020C4070) 7 #define CCM_CCGR3 *((volatile unsigned int *)0X020C4074) 8 #define CCM_CCGR4 *((volatile u...
表8.1.6.1外设时钟控制 根据表8.1.6.1中的位设置,如果我们要打开GPIO2的外设时钟,那么只需要设置CCM_CCGR0的bit31和bit30都为1即可,也就是CCM_CCGR0=3 << 30。反之,如果要关闭GPIO2的外设时钟,那就设置CCM_CCGR0的bit31和bit30都为0即可。CCM_CCGR0~CCM_CCGR6这7个寄存器操作都是类似的,只是不同的...