摘要: -- #include "key.h" -- #define KEY1 (GPIOA->IDR & (0X1IDR & (0X1IDR & (0X1IDR & (0X1APB2ENR &= ~(1APB2ENR |= (1APB2ENR &= ~(1APB2ENR |= (1CRL &= ~(0xf 阅读全文
posted @ 2023-07-13 10:28 HelloKe 阅读(63) 评论(0) 推荐(0) 编辑
摘要: 时钟 用哪个外设就要开他对应的时钟 例子:RCC->APB2ENR |=(0x01CR |= ((uint32_t)RCC_CR_HSEON); /* 等待高速晶振就绪 */ do { HSEStatus = RCC->CR & RCC_CR_HSERDY; StartUpCounter++; } 阅读全文
posted @ 2023-07-13 09:52 HelloKe 阅读(2216) 评论(0) 推荐(0) 编辑