完善资料让更多小伙伴认识你,还能领取20积分哦, 立即完善>
新手初次接触CC2640,欲配置LED。根据Software developer's guide的步骤,却不知应该在simpleBLEphripheral.c文件的什么位置添加这步骤2和3的代码?望指教。谢谢
2. Declare the pin configuration table and pin state / handle variables to be used by the SimpleBLEPeripheral task: static PIN_Config SBP_configTable[] = [ Board_LED1 | PIN_GPIO_OUTPUT_EN | PIN_GPIO_LOW | PIN_PUSHPULL | PIN_DRVSTR_MAX, Board_KEY_UP | PIN_INPUT_EN | PIN_PULLUP | PIN_HYSTERESIS, PIN_TERMINATE ]; static PIN_State ***pPins; static PIN_Handle hSbpPins; 3. Declare the ISR to be performed in the hwi context. Note that all this is doing is setting an event in the application task and waking it up. This is done to minimize processing in the hwi context. static void buttonHwiFxn(PIN_Handle hPin, PIN_Id pinId) [ // set event in SBP task to process outside of hwi context events |= SBP_BTN_EVT; // Wake up the application. Semaphore_post(sem); ] |
|
相关推荐
2 个讨论
|
|
只有小组成员才能发言,加入小组>>
TMS320F28377D:新做了以377d为芯片的板子,上电后芯片复位引脚出现方波请问如何解决?
1888 浏览 0 评论
TPS55340通电后输入端保险丝烧断,芯片输入和GND之间短路
3645 浏览 4 评论
5031 浏览 0 评论
请问如何用DM368对RGB格式的图片数据进行编码生成JPEG格式图片?
1734 浏览 1 评论
9368 浏览 8 评论
CC3100BOOST使用CC3200lunchXL进行烧录
664浏览 2评论
707浏览 1评论
TMS320F28034: 利用C2prog通过SCI给TMS320F28034烧录程序,出现错误提示:Bootloading... failed (invalid echo)!
668浏览 1评论
求DLPC350 Programmer’s Guide User's Guide 中文版说明书
1189浏览 1评论
1761浏览 1评论
小黑屋| 手机版| Archiver| 电子发烧友 ( 湘ICP备2023018690号 )
GMT+8, 2024-4-23 16:56 , Processed in 0.738322 second(s), Total 53, Slave 43 queries .
Powered by 电子发烧友网
© 2015 bbs.elecfans.com
关注我们的微信
下载发烧友APP
电子发烧友观察
版权所有 © 湖南华秋数字科技有限公司
电子发烧友 (电路图) 湘公网安备 43011202000918 号 电信与信息服务业务经营许可证:合字B2-20210191 工商网监 湘ICP备2023018690号