摘要:
-- #include "key.h" -- #define KEY1 (GPIOA->IDR & (0X1IDR & (0X1IDR & (0X1IDR & (0X1APB2ENR &= ~(1APB2ENR |= (1APB2ENR &= ~(1APB2ENR |= (1CRL &= ~(0xf 阅读全文
摘要:
时钟 用哪个外设就要开他对应的时钟 例子:RCC->APB2ENR |=(0x01CR |= ((uint32_t)RCC_CR_HSEON); /* 等待高速晶振就绪 */ do { HSEStatus = RCC->CR & RCC_CR_HSERDY; StartUpCounter++; } 阅读全文