资源简介

内含全套的基于物联网的智慧宿舍的代码,运行有效,采用手机APP控制

资源截图

代码片段和文件信息

/**
********************************************************
*
* @file      Hal_infrared.c
* @author    Gizwtis
* @version   V2.3
* @date      2015-07-06
*
* @brief     机智云 只为智能硬件而生
*            Gizwits Smart Cloud  for Smart Products
*            链接|增值|开放|中立|安全|自有|自由|生态
*            www.gizwits.com
*
*********************************************************/

#include 
#include “Hal_infrared/Hal_infrared.h“

void IR_Init(void)
{
    GPIO_InitTypeDef GPIO_InitStructure;

    RCC_APB2PeriphClockCmd(Infrared_GPIO_CLKENABLE);//使能PORTAPORTE时钟
    GPIO_InitStructure.GPIO_Pin  = Infrared_GPIO_PIN;
    GPIO_InitStructure.GPIO_Mode = GPIO_Mode_IPU; //设置成上拉输入
    GPIO_InitStructure.GPIO_Speed=GPIO_Speed_2MHz;
    GPIO_Init(Infrared_GPIO_PORT &GPIO_InitStructure);
}
bool IR_Handle(void)
{
    if(GPIO_ReadInputDataBit(Infrared_GPIO_PORT Infrared_GPIO_PIN))
    {
        return 0;
    }
    else
    {
        return 1;
    }
}

 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----

     文件        984  2015-08-31 00:01  智慧宿舍\Hal\Hal_infrared\hal_infrared.c

     文件        331  2015-08-31 00:01  智慧宿舍\Hal\Hal_infrared\Hal_infrared.h

     文件       5690  2015-08-31 00:01  智慧宿舍\Hal\Hal_key\hal_key.c

     文件        990  2015-08-31 00:01  智慧宿舍\Hal\Hal_key\Hal_key.h

     文件       2162  2016-07-24 00:41  智慧宿舍\Hal\Hal_led\Hal_led.c

     文件        774  2015-08-31 00:01  智慧宿舍\Hal\Hal_led\Hal_led.h

     文件       3547  2015-08-31 00:01  智慧宿舍\Hal\hal_motor\hal_motor.c

     文件        488  2015-08-31 00:01  智慧宿舍\Hal\hal_motor\Hal_motor.h

     文件       2832  2015-08-31 00:01  智慧宿舍\Hal\Hal_rgb_led\hal_rgb_led.c

     文件        759  2015-08-31 00:01  智慧宿舍\Hal\Hal_rgb_led\Hal_rgb_led.h

     文件       2551  2015-08-31 00:01  智慧宿舍\Hal\hal_temp_hum\hal_temp_hum.c

     文件       1191  2015-08-31 00:01  智慧宿舍\Hal\hal_temp_hum\Hal_temp_hum.h

     文件       1771  2015-08-31 00:01  智慧宿舍\Hal\hal_temp_hum\sys.h

     文件       8358  2016-07-30 10:54  智慧宿舍\Hal\Hal_Usart\hal_uart.c

     文件       1987  2016-07-23 22:53  智慧宿舍\Hal\Hal_Usart\hal_uart.h

     文件      16489  2015-08-31 00:01  智慧宿舍\Lib\CMSIS\CM3\CoreSupport\core_cm3.c

     文件      83896  2015-08-31 00:01  智慧宿舍\Lib\CMSIS\CM3\CoreSupport\core_cm3.h

     文件      26014  2015-08-31 00:01  智慧宿舍\Lib\CMSIS\CM3\DeviceSupport\ST\STM32F10x\Release_Notes.html

     文件      15398  2015-08-31 00:01  智慧宿舍\Lib\CMSIS\CM3\DeviceSupport\ST\STM32F10x\startup\arm\startup_stm32f10x_cl.s

     文件      15145  2015-08-31 00:01  智慧宿舍\Lib\CMSIS\CM3\DeviceSupport\ST\STM32F10x\startup\arm\startup_stm32f10x_hd.s

     文件      15346  2015-08-31 00:01  智慧宿舍\Lib\CMSIS\CM3\DeviceSupport\ST\STM32F10x\startup\arm\startup_stm32f10x_hd_vl.s

     文件      12079  2015-08-31 00:01  智慧宿舍\Lib\CMSIS\CM3\DeviceSupport\ST\STM32F10x\startup\arm\startup_stm32f10x_ld.s

     文件      13352  2015-08-31 00:01  智慧宿舍\Lib\CMSIS\CM3\DeviceSupport\ST\STM32F10x\startup\arm\startup_stm32f10x_ld_vl.s

     文件      12458  2015-08-31 00:01  智慧宿舍\Lib\CMSIS\CM3\DeviceSupport\ST\STM32F10x\startup\arm\startup_stm32f10x_md.s

     文件      13758  2015-08-31 00:01  智慧宿舍\Lib\CMSIS\CM3\DeviceSupport\ST\STM32F10x\startup\arm\startup_stm32f10x_md_vl.s

     文件      15597  2015-08-31 00:01  智慧宿舍\Lib\CMSIS\CM3\DeviceSupport\ST\STM32F10x\startup\arm\startup_stm32f10x_xl.s

     文件      12604  2015-08-31 00:01  智慧宿舍\Lib\CMSIS\CM3\DeviceSupport\ST\STM32F10x\startup\gcc_ride7\startup_stm32f10x_cl.s

     文件      12695  2015-08-31 00:01  智慧宿舍\Lib\CMSIS\CM3\DeviceSupport\ST\STM32F10x\startup\gcc_ride7\startup_stm32f10x_hd.s

     文件      12040  2015-08-31 00:01  智慧宿舍\Lib\CMSIS\CM3\DeviceSupport\ST\STM32F10x\startup\gcc_ride7\startup_stm32f10x_hd_vl.s

     文件       9471  2015-08-31 00:01  智慧宿舍\Lib\CMSIS\CM3\DeviceSupport\ST\STM32F10x\startup\gcc_ride7\startup_stm32f10x_ld.s

............此处省略259个文件信息

评论

共有 条评论