echo//TIM4_CH2(PB7)->trigGPIO_InitTypeDefGPIO_InitStructure;EXTI_InitTypeDefEXTI_InitStructure;//NVIC_InitTypeDefNVIC_InitStructure;RCC_APB2PeriphClockCmd(RCC_APB2Periph_GPIOB,ENABLE);GPIO_InitStructure.GPIO_Pin=GPIO_Pin_7;GPIO_InitStructure.GPIO_Speed=GPIO_Speed_50MHz;GPIO_InitStructure.GPIO_Mode=GPIO_Mode_Out_PP;GPIO_Init(GPIOB,&GPIO_InitStructure);GPIO_InitStructure.GPIO_Pin=GPIO_Pin_6;GP-IMDN开发者社群-imdn.cn"> echo//TIM4_CH2(PB7)->trigGPIO_InitTypeDefGPIO_InitStructure;EXTI_InitTypeDefEXTI_InitStructure;//NVIC_InitTypeDefNVIC_InitStructure;RCC_APB2PeriphClockCmd(RCC_APB2Periph_GPIOB,ENABLE);GPIO_InitStructure.GPIO_Pin=GPIO_Pin_7;GPIO_InitStructure.GPIO_Speed=GPIO_Speed_50MHz;GPIO_InitStructure.GPIO_Mode=GPIO_Mode_Out_PP;GPIO_Init(GPIOB,&GPIO_InitStructure);GPIO_InitStructure.GPIO_Pin=GPIO_Pin_6;GP - IMDN开发者社群-imdn.cn">
登录
首页 » c » 光流,超声波

光流,超声波

于 2022-01-25 发布 文件大小:4.62 MB
0 147
下载积分: 2 下载次数: 1

代码说明:

可以给做电赛的朋友 #include "includes.h" /********************************* 使用外部中断和systik定时器来做超声波部分 警告:超声波使用systick时,其他设备不允许使用systick ***********************************/ unsigned char ultrasonic_systick = 0;//等于0时,超声波没有使用SYSTICK unsigned char ultrasonic_ok = 0; unsigned int ultrasonic_Data; float ultrasonic_Hight; //此部分初始化外部中断以及各部分用到的引脚 void ultrasonic_Init(void) { //使用TIM4_CH1,TIM4_CH2用于超声波引脚 //TIM4_CH1(PB6) -> echo //TIM4_CH2(PB7) -> trig GPIO_InitTypeDef GPIO_InitStructure; EXTI_InitTypeDef EXTI_InitStructure; // NVIC_InitTypeDef NVIC_InitStructure; RCC_APB2PeriphClockCmd(RCC_APB2Periph_GPIOB ,ENABLE); GPIO_InitStructure.GPIO_Pin=GPIO_Pin_7; GPIO_InitStructure.GPIO_Speed=GPIO_Speed_50MHz; GPIO_InitStructure.GPIO_Mode=GPIO_Mode_Out_PP; GPIO_Init(GPIOB,&GPIO_InitStructure); GPIO_InitStructure.GPIO_Pin=GPIO_Pin_6; GP

下载说明:请别用迅雷下载,失败请重下,重下不扣分!

发表评论

0 个回复

  • C#制作的Winform窗体设计器(仿VS界面)
    11111111111111111111111111111111111111111111111111111111111111111111111111111111111111
    2022-03-22 22:33:30下载
    积分:1
  • foi_mimo.tar
    GNUradio中mimo实现,基于GNURadio3.3.0以及UHD(mimo in GNURadio based on GNURadio 3.3.0 and UHD)
    2013-12-05 12:06:15下载
    积分:1
  • imgrayscaling
    matlab 实现图像 的缩小放大 (Enlarge Image narrowing matlab)
    2011-05-27 15:11:12下载
    积分:1
  • AIC23
    基于TI DSP c672x的音频信号处理,音频编解码芯片采用AIC23,通过I2C对AIC23进行操作。(Based on TI DSP c672x audio signal processing, audio codec chip AIC23, AIC23 carried on through the I2C operation.)
    2013-09-16 23:18:28下载
    积分:1
  • 二维稳态导热的数值计算
    二维稳态导热计算编程,适合需要用编程计算导热问题的(Two-dimensional steady-state heat conduction calculation programming)
    2019-05-25 15:49:59下载
    积分:1
  • ccs811
    说明:  CO2传感器手册使用说明书 CCS811(CO2 sensor manual manual CCS811)
    2019-04-21 21:18:15下载
    积分:1
  • bullet
    子彈 可以用C++ code做出子彈並放進射擊遊戲。(Bullets can make use C++ code and put a bullet shooter.)
    2013-12-31 03:20:27下载
    积分:1
  • 国家集训队2014论文集_7821111
    National Training Team 2014 Proceedings
    2020-06-23 03:00:02下载
    积分:1
  • polar3d
    三维极坐标绘图函数,将三维直角坐标系下的绘图转变为三维极坐标绘图(Three-dimensional polar coordinate drawing function, the three-dimensional Cartesian coordinates of the system into a three-dimensional polar coordinates)
    2020-06-30 15:20:01下载
    积分:1
  • SmartHome
    说明:  完整的QT界面设计,模拟智能家居控制,模拟串口(Complete design of QT interface, simulation of smart home control, simulation of serial port)
    2019-06-15 23:45:22下载
    积分:1
  • 696516资源总数
  • 106442会员总数
  • 11今日下载