随笔分类 - STM32
摘要://spi.c #iinclude "spi.h" void SPI2_Init () //初始化SPI口 { GPIO_InitTypeDef GPIO_InitStructure; SPI_InitTypeDef SPI_InitStructure; RCC_APB2PeriphClockCmd
阅读全文
摘要:配置实现 //转载 FSMC配置说明: typedef struct { uint32_t FSMC_Bank; //nor被分为四块,其中这个参数是说明对那个块编程 uint32_t FSMC_DataAddressMux; //地址\数据是否复用 uint32_t FSMC_MemoryType
阅读全文
摘要:程序实现: 1 Timer.h 2 #ifndef __TIMER_H 3 #define __TIMER_H 4 #include "sys.h" 5 6 void TIM5_Cap_Init(u16 arr,u16 psc); 7 #endif 8 9 10 11 Timer.c 12 13 v
阅读全文

浙公网安备 33010602011771号