TI 大神,你好!
定时函数问题。我用定时函数来消抖和判断长短按,但是这个定时器函数的优先级,就是最后一个参数,我全部设置为0。
然后在定时触发函数只做一个标记,标记是否是长按。然后我发现了有时候定时函数不能正常执行。现在我用定时器
来触发一个事件来判断长短按,目前没有试到什么异常,请问这是为什么?
Yue TANG:
具体哪个函数? TI 有蓝牙遥控器的设计,设计代码都公开,你可以参考
http://www.ti.com/tool/TIDC-BLUETOOTH-SMART-KEYBOARD-MODULE?keyMatch=CC2650%20keyboard%20ref&tisearch=Search-EN-Everything
Key Document
Bluetooth Smart Keyboard Module Design Guide (Rev. A) (PDF 988 KB)
This reference design provides a turnkey solution for Bluetooth SMART keyboards using the SimpleLink CC2650 Wireless MCU. Hardware and software reference files are included for easy adaptation to customer specific requirements.
Features
Low power consumption and industry-best product battery life
Easily adaptable to any keyboard matrix
Small form-factor castellation design
Interoperable with Android, iOS and Windows
HID over GATT Profile (HOGP) compliant which includes support for keyboard and consumer control inputs
Smart Master Switch Feature for switching between Pre-paired masters with push of a buttonView the Important Notice for TI Designs covering authorized use, intellectual property matters and disclaimers.
The TI Keyboard module contains the CC2650 Bluetooth Smart Wireless MCU. This module can be integrated with a keyboard motherboard to achieve a very-low power keyboard solution. The main features of the module are as follows: • Fully integrated module with CC2650 Bluetooth Smart Wireless MCU, crystal filters, matching circuit, and on-board 2.4-GHz PCB antenna • Small factor, castellation design • The keyboard module is tested by integrating it with a third-party keyboard matrix (105 keys) • The functionality of the keyboard is tested by connecting to host devices with these operating systems: – Android 4.3 and above – iOS 6.0 and above – Microsoft® Windows 8 • JTAG availability for debugging • Easy access to ADC pins to check and monitor low battery conditions
The Bluetooth Smart module is designed to cater to the HID keyboard and other markets where the similar-dimension modules are used. The module is a four-layer printed circuit board with integrated 2.4- GHz PCB antenna. This section covers the technologies and procedures used. The keyboard module is connected to the keypad matrix through a set of GPIOs. A key press / release is detected by the keyboard application by using a key-scan algorithm, which refers to the GPIO state. The key detections are communicated to the connected host device using the Bluetooth Smart communication mechanism. The HID over GATT Protocol (HOGP) is used between the keyboard and host device for interpreting the key strokes
Susan Yang:
ni您可以参考下 http://blog.csdn.net/feilusia/article/details/54016269 中使用的方法
TI中文支持网


