登录
首页 » Unix_Linux » Timer

Timer

于 2020-12-27 发布 文件大小:19KB
0 228
下载积分: 1 下载次数: 64

代码说明:

  以最小堆、红黑树、时间轮三种方式实现定时器,时间轮效率最高,非常具有参考价值!(With the minimum heap, red and black tree, time round three ways to realize timer, time round the highest efficiency, has the reference value very much!)

文件列表:

Timer
.....\main.cpp,9535,2015-07-16
.....\Makefile,263,2015-07-16
.....\mtr_heap_timer.cpp,9041,2015-07-15
.....\mtr_heap_timer.h,2987,2015-07-15
.....\mtr_rb_tree.c,11333,2015-07-15
.....\mtr_rb_tree.h,2129,2015-07-15
.....\mtr_rb_tree_timer.cpp,6324,2015-07-16
.....\mtr_rb_tree_timer.h,2130,2015-07-16
.....\mtr_wheel_timer.cpp,6834,2015-07-16
.....\mtr_wheel_timer.h,2756,2015-07-16
.....\非常适合linux(服务器 应用 嵌入式)开发.doc,18944,2016-01-29

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

发表评论

0 个回复

  • stm32基本例程 PWM输出实验
    说明:  输出PWM波,可移植性强。适用于stm32F103系列的单片机。例子也比较经典。(Output PWM wave, strong portability)
    2020-06-17 21:20:02下载
    积分:1
  • STM8--ADC-CHANGE
    在许多的单片机应用系统中,都需要A/D转换器,将模拟量转换成数字量。在STM8单片机中,提供的是10位的A/D,通道数随芯片不同而不同,少的有4个通道,多的则有16个通道。 下面的实验程序首先对A/D输入进行采样,然后将采样结果的高8位(丢弃最低的2位),作为延时参数去调用延时子程序,然后再去驱动LED控制信号。因此不同的采样值,决定了LED的闪烁频率。当旋转ST三合一开发板上的电位器时,可以看到LED的闪烁频率发生变化。 (In many microcontroller applications require the A/D converter to convert analog into digital. STM8 microcontroller, providing a 10-bit A/D channel number with the chip, little has four channels, more than 16 channels. The following experimental procedure first sampling A/D input, then the sampling results 8 (drop the lowest 2), as the delay parameter to call the delay subroutine, and then go drive LED control signal. Different sampling values, the LED flashing frequency. When the potentiometer rotation ST triple development board, you can see the LED flashing frequency change.)
    2013-04-13 11:20:36下载
    积分:1
  • light
    采用红外线遥控控制平板灯的色温与亮暗,程序调试通过,主控芯片为PIC单片机(Adopting infrared remote control plate lamp color temperature and brightness, program debugging through, master control chip for the PIC microcontroller )
    2013-10-18 22:28:30下载
    积分:1
  • pwm
    单片机控制LED七彩渐变程序单片机控制LED七彩渐变程序(SCM control LED Colorful gradient program)
    2010-02-02 11:55:16下载
    积分:1
  • STC15F2K60S2
    STC15F60S2单片机的数据手册,内含典型应用电路,驱动程序(STC15F60S2 MCU datasheet, containing the typical circuit , driver program)
    2015-08-07 15:31:32下载
    积分:1
  • CC1101Schematic-experimental-code
    MSP430g2553实现CC1101无线通讯。 最近有个项目,使用CC1101无线传输控制,刚开始做使用MEGA8实现,当晚也没有考虑功耗的问题,但最后项目要求用电池供电,这就出现问题了。无线在发射时的系统的整个功耗在16ma左右,这样一算,不论实用什么电池也不能实现一个月的工作时间。但是要实现,就要一步一步的调试。第一部做的是把MEGA8的供电降到3.3V, 这样的系统的功耗能够降低一半,但是总的时间还是不能实现;第二部把系统的DC/DC稳压片替换成低电流输出、低功耗的稳压电源。这样两步下来,系统功耗降到8ma,可惜的还是不能实现。再进一步,让无线间隔性工作,工作30S,停30S。这样功耗又进一步下降,但是用电池供电的话,只能维持10天左右,要想实现30天,不太可能啊。 CC1101原理图实验代码 拿到LaunchPad后,第一想到是将代码移植到上面,看看系统的功耗。今天上午很容易移植成功了,一没功耗,让我看到了希望,在没有采取任何降低功耗的措施下,系统的功耗是4ma,无线一直在工作状态。太好,如果采取功耗设计,我想一定能够实现项目要求,期待能够调试出更低的功耗。 (The CC1101 Schematic experimental code)
    2020-08-30 14:58:11下载
    积分:1
  • NO11.IIC
    基于51单片机的IIC总线的C语言编程,通过51单片机来模拟IIC总线协议(Based on 51 MCU IIC C language programming bus by the microcontroller 51 to simulate the IIC bus protocol)
    2016-06-07 18:13:16下载
    积分:1
  • Lcd1335fb
    sed1335fb.c -- Driver for sed1335 lcd control framebuffer device(sed1335fb.c-- Driver for sed1335 lcd cont rol framebuffer device)
    2006-11-05 18:08:23下载
    积分:1
  • test-C
    利用单片机进行光敏电阻的实验,源码适用于C51单片机(Photoresistor experiments using SCM, source suitable for C51 MCU)
    2013-02-24 11:31:05下载
    积分:1
  • 7279
    7279的程序 是在lpc2138上的经过调试绝对好使(7279 program in lpc2138 absolutely so on through the commissioning)
    2011-08-19 09:16:59下载
    积分:1
  • 696518资源总数
  • 106164会员总数
  • 18今日下载