• 大小: 24.83MB
    文件类型: .zip
    金币: 1
    下载: 0 次
    发布日期: 2023-07-07
  • 语言: 其他
  • 标签: Arduino  

资源简介

Arduino-OpenCM9.04.zip,opencm 9.04/opencm的软件是指开源控制模块。opencm 9.04:开源控制模块9.04,Arduino是一家开源软硬件公司和制造商社区。Arduino始于21世纪初,深受电子制造商的欢迎,Arduino通过开源系统提供了很多灵活性。

资源截图

代码片段和文件信息

/******************************************************************************
 * The MIT License
 *
 * Copyright (c) 2010 Bryan Newbold.
 *
 * Permission is hereby granted free of charge to any person
 * obtaining a copy of this software and associated documentation
 * files (the “Software“) to deal in the Software without
 * restriction including without limitation the rights to use copy
 * modify merge publish distribute sublicense and/or sell copies
 * of the Software and to permit persons to whom the Software is
 * furnished to do so subject to the following conditions:
 *
 * The above copyright notice and this permission notice shall be
 * included in all copies or substantial portions of the Software.
 *
 * THE SOFTWARE IS PROVIDED “AS IS“ WITHOUT WARRANTY OF ANY KIND
 * EXPRESS OR IMPLIED INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
 * MERCHANTABILITY FITNESS FOR A PARTICULAR PURPOSE AND
 * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS
 * BE LIABLE FOR ANY CLAIM DAMAGES OR OTHER LIABILITY WHETHER IN AN
 * ACTION OF CONTRACT TORT OR OTHERWISE ARISING FROM OUT OF OR IN
 * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
 * SOFTWARE.
 *****************************************************************************/

#include  

#include 
#include “drv_timer.h“
#include “variant.h“
#include “HardwareTimer.h“




HardwareTimer::HardwareTimer(uint8_t timerNum) {
  if (timerNum >= TIMER_CH_MAX) {
    tim_num = 0;
  }

  tim_num = timerNum;
}

void HardwareTimer::pause(void) {
  drv_timer_pause(tim_num);
}

void HardwareTimer::resume(void) {
  drv_timer_resume(tim_num);
}

void HardwareTimer::stop(void) {
  drv_timer_pause(tim_num);
}

void HardwareTimer::start(void) {
  drv_timer_resume(tim_num);
}

uint16_t HardwareTimer::setPeriod(uint32_t microseconds) {

  drv_timer_set_period(tim_num microseconds);

  return 0;
}

void HardwareTimer::attachInterrupt(voidFuncPtr handler) {
  drv_timer_attachInterrupt(tim_num handler);
}

void HardwareTimer::detachInterrupt(void) {
    drv_timer_detachInterrupt(tim_num);
}

void HardwareTimer::refresh(void) {
    drv_timer_refresh(tim_num);
}

 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----
     目录           0  2019-07-29 03:06  OpenCM9.04-master\
     文件          17  2019-07-29 03:06  OpenCM9.04-master\.gitignore
     文件         396  2019-07-29 03:06  OpenCM9.04-master\.travis.yml
     文件         267  2019-07-29 03:06  OpenCM9.04-master\99-opencm-cdc.rules
     文件       11357  2019-07-29 03:06  OpenCM9.04-master\LICENSE
     文件        1446  2019-07-29 03:06  OpenCM9.04-master\README.md
     目录           0  2019-07-29 03:06  OpenCM9.04-master\arduino\
     目录           0  2019-07-29 03:06  OpenCM9.04-master\arduino\opencm_arduino\
     目录           0  2019-07-29 03:06  OpenCM9.04-master\arduino\opencm_arduino\examples\
     目录           0  2019-07-29 03:06  OpenCM9.04-master\arduino\opencm_arduino\examples\Adafruit_SSD1306\
     文件      291226  2019-07-29 03:06  OpenCM9.04-master\arduino\opencm_arduino\examples\Adafruit_SSD1306\Adafruit_GFX_Library.zip
     文件       21174  2019-07-29 03:06  OpenCM9.04-master\arduino\opencm_arduino\examples\Adafruit_SSD1306\Adafruit_SSD1306.zip
     文件        2459  2019-07-29 03:06  OpenCM9.04-master\arduino\opencm_arduino\examples\Adafruit_SSD1306\Exam_ssd1306_128x64_i2c.zip
     文件     1012994  2019-07-29 03:06  OpenCM9.04-master\arduino\opencm_arduino\examples\Adafruit_SSD1306\oled_test_result.png
     文件       55691  2019-07-29 03:06  OpenCM9.04-master\arduino\opencm_arduino\examples\Exam_MPU6050.zip
     目录           0  2019-07-29 03:06  OpenCM9.04-master\arduino\opencm_arduino\opencm9.04\
     文件       33621  2019-07-29 03:06  OpenCM9.04-master\arduino\opencm_arduino\opencm9.04\.cproject
     文件          25  2019-07-29 03:06  OpenCM9.04-master\arduino\opencm_arduino\opencm9.04\.gitignore
     文件         810  2019-07-29 03:06  OpenCM9.04-master\arduino\opencm_arduino\opencm9.04\.project
     文件        1216  2019-07-29 03:06  OpenCM9.04-master\arduino\opencm_arduino\opencm9.04\boards.txt
     目录           0  2019-07-29 03:06  OpenCM9.04-master\arduino\opencm_arduino\opencm9.04\bootloaders\
     文件       12276  2019-07-29 03:06  OpenCM9.04-master\arduino\opencm_arduino\opencm9.04\bootloaders\opencm_boot.bin
     目录           0  2019-07-29 03:06  OpenCM9.04-master\arduino\opencm_arduino\opencm9.04\cores\
     目录           0  2019-07-29 03:06  OpenCM9.04-master\arduino\opencm_arduino\opencm9.04\cores\arduino\
     文件        2550  2019-07-29 03:06  OpenCM9.04-master\arduino\opencm_arduino\opencm9.04\cores\arduino\Arduino.h
     文件        1529  2019-07-29 03:06  OpenCM9.04-master\arduino\opencm_arduino\opencm9.04\cores\arduino\Client.h
     文件        1349  2019-07-29 03:06  OpenCM9.04-master\arduino\opencm_arduino\opencm9.04\cores\arduino\HardwareSerial.h
     文件        2200  2019-07-29 03:06  OpenCM9.04-master\arduino\opencm_arduino\opencm9.04\cores\arduino\HardwareTimer.cpp
     文件        1729  2019-07-29 03:06  OpenCM9.04-master\arduino\opencm_arduino\opencm9.04\cores\arduino\HardwareTimer.h
     文件        2851  2019-07-29 03:06  OpenCM9.04-master\arduino\opencm_arduino\opencm9.04\cores\arduino\IPAddress.cpp
     文件        2861  2019-07-29 03:06  OpenCM9.04-master\arduino\opencm_arduino\opencm9.04\cores\arduino\IPAddress.h
............此处省略1321个文件信息

评论

共有 条评论