登录
首页 » 嵌入式芯片 » 状态机制实现按键长按、短按、长按累加识别

状态机制实现按键长按、短按、长按累加识别

于 2022-08-19 发布 文件大小:6.34 kB
0 165
下载积分: 2 下载次数: 1

代码说明:

资源描述Key.c和Key.h  源文件实现了按键长按、短按、长按累加的识别,采用状态机制来实现按键消斗和不同按键状态识别,最大限度提升程序的运行效率和MCU利用率,该代码移植性,支持IO驱动按键,AD采样方式识别按键。采用DMA的方式获取AD采样数据,MCU采用STM32.

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

发表评论

0 个回复

  • Necessary to optimize the level of s, other optimization levels will not lead to...
    优化级别必需为s,其他优化级别也不会导致编译时出错,但会导致运行时出错。原因涉及局部变量分配堆栈处理方式不同,也就是OS_CPU_A.c那个文件中的移植部分。还有就是其他优化涉及的中断自动保存寄存器的数量有所出入。-Necessary to optimize the level of s, other optimization levels will not lead to compile-time error, but it will result in run-time error. Reasons relating to the allocation of local variables, stack processing in different ways, that is, OS_CPU_A.c that the transplanted parts of the file. There are other optimization related to the interruption of the number of registers saved automatically have access to.
    2022-08-10 01:29:05下载
    积分:1
  • 基于LPC2414的TC77温度驱动程序(带protues仿真)
    基于LPC2414的TC77温度芯片驱动程序(带protues仿真),用液晶屏显示温度(附带液晶驱动)。
    2022-03-04 19:44:16下载
    积分:1
  • 这是一种usbarmlp2148 Keil mcb2140野猪USB存储设备的示范…
    USBarmLP2148 This is a USB Memory Device demonstration for the Keil MCB2140 Board with Philips LPC2148. -USBarmLP2148 This is a USB Memory Device demonstration for the Keil MCB2140 Board with Philips LPC2148.
    2022-08-11 12:25:29下载
    积分:1
  • s3c2440测试源码
    s3c2440测试源码,S3C2440最全面的裸机测试程序,如果IDE不合适,直接看源码无大碍。绝对最全面的了解裸机测试程序
    2022-05-14 14:47:56下载
    积分:1
  • at91arm7处理器的启动源码
    at91arm7处理器的启动源码-The prcocessor s starting source code of the at91arm7.
    2022-02-24 20:06:57下载
    积分:1
  • 在STM32中开关LED
    这是程序初学者学习STM32 ARM。功能简单,如何配置STM32,并打开LED或关闭。  这个程序是写在KEIL。
    2022-02-02 21:09:27下载
    积分:1
  • Version file for STM32F10x Firmware Library (FWLib). * The enclosed firmware a...
    Version file for STM32F10x Firmware Library (FWLib). * The enclosed firmware and all the related documentation * are not covered by a License Agreement, if you need such * License you can contact your local STMicroelectronics * office.-Version file for STM32F10x Firmware Library (FWLib). * The enclosed firmware and all the related documentation * are not covered by a License Agreement, if you need such * License you can contact your local STMicroelectronics * office.
    2022-02-02 00:23:44下载
    积分:1
  • SC2410 SDRAM测试程序
    SC2410 SDRAM测试程序-SC2410 SDRAM testing procedures
    2022-01-26 01:53:02下载
    积分:1
  • ARM7X256的网络ARP和ICMP的简单软件协议版(备注是IAR开发环境下)
    ARM7X256的网络ARP和ICMP的简单软件协议版(备注是IAR开发环境下)-ARM7X256 network ARP and ICMP simple version of the software agreement (Note that IAR development environment)
    2022-12-19 04:10:03下载
    积分:1
  • wwwwwwwwwwwwwwwwwwwwwwwwwwwwwwww
    WWWWWWWWWWWWWW222222222222222222222222 rrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrr
    2022-12-08 14:30:03下载
    积分:1
  • 696516资源总数
  • 106908会员总数
  • 1今日下载