This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

CC3200 LAUNCHPAD的按键驱动。

Other Parts Discussed in Thread: CC3200, CC3200SDK

TI工程师,你好:

有没有CC3200 的按键驱动,或者那种按一下按键,就可以实现LED亮,再按一下按键,可以实现LED灭的那种驱动

示例?能不能发送一个链接下载一下。

  • 您可以下载CC3200的SDK,安装文件夹C:\ti\CC3200SDK\cc3200-sdk\example\common是包含了button的文件的 

  • 用中断去实现 

    可参考 http://blog.csdn.net/lrlv5/article/details/50920415

  • 如果使用按键或定时器等采用中断的方式,注意中断优先级的使用

    // CC3200支持8个中断优先级,使用8位中断优先级的高3位,优先级的分组如下:
    // 1: 0bit 是抢占优先级 3bit 是响应优先级
    // 2: 1bit 是抢占优先级 2bit 是响应优先级
    // 3: 2bit 是抢占优先级 1bit 是响应优先级
    // 4: 3bit 是抢占优先级 0bit 是响应优先级
    // 情况 1, 中断优先级值: yyy
    // 情况 2, 中断优先级值: xyy
    // 情况 3, 中断优先级值: xxy
    // 情况 4, 中断优先级值: xxx
    // X 是抢占优先级, Y 是响应优先级
    // 参数 1: 输入范围 0 ~ 8
    // 因为优先级只有 3bit, 所以实际起作用只有 0-3, 4-8 的效果跟 3 一样,