管理STM32红外通信模块,源代码.docVIP

  • 14
  • 0
  • 约5.52千字
  • 约 7页
  • 2017-11-08 发布于湖北
  • 举报
资料来自网络,请保护知识产权,请您下载后勿作商用,只可学习交流使用。源代码

Main.c #include stm32f10x.h #include usart1.h #include adc.h #include Time_test.h u32 flag; u32 f=0; volatile u32 time=0; volatile u32 time1=0; /* ADC1转换的电压值通过MDA方式传到SRAM */ extern __IO uint16_t ADC_ConvertedValue; /* 局部变量,用于保存转换计算后的电压值*/ float ADC_ConvertedValueLocal; /* 软件延时*/ void Delay(__IO uint32_t nCount) { for(; nCount != 0; nCount--); } int main(void) { SystemInit(); /* USART1 config */ USART1_Config(); /* enable adc1 and config adc1 to dma mode */ ADC1_Init(); /* TIM2 定时配置 */ TIM2_NVIC_Configuration(); TIM2_Configuration(); TIM3_NVIC_Configuration();

文档评论(0)

1亿VIP精品文档

相关文档