实例介绍
NRF51822的蓝牙,按键led例程。中间被别人加过一些注释,应该不影响使用。资源分没有0的选项,所以就放1个了。
【实例截图】
【核心代码】
7c842bc5-23fe-469e-82ae-a1bdd5a08bd3
└── BLE实验3:按键蓝牙通知
├── Board
│ └── pca10001
│ └── s110
│ └── ble_app_led
│ ├── arm
│ │ ├── ble_app_led_nrf51822_xxaa_s110 (256K).dep
│ │ ├── ble_app_led.uvgui.aaaa
│ │ ├── ble_app_led.uvgui_aaaa.bak
│ │ ├── ble_app_led.uvgui.Administrator
│ │ ├── ble_app_led.uvgui_Administrator.bak
│ │ ├── ble_app_led.uvopt
│ │ ├── ble_app_led_uvopt.bak
│ │ ├── ble_app_led.uvproj
│ │ ├── ble_app_led_uvproj.bak
│ │ ├── _build
│ │ │ ├── app_button.crf
│ │ │ ├── app_button.d
│ │ │ ├── app_button.__i
│ │ │ ├── app_button.o
│ │ │ ├── app_gpiote.crf
│ │ │ ├── app_gpiote.d
│ │ │ ├── app_gpiote.o
│ │ │ ├── app_scheduler.crf
│ │ │ ├── app_scheduler.d
│ │ │ ├── app_scheduler.o
│ │ │ ├── app_timer.crf
│ │ │ ├── app_timer.d
│ │ │ ├── app_timer.o
│ │ │ ├── arm_startup_nrf51.d
│ │ │ ├── arm_startup_nrf51.lst
│ │ │ ├── arm_startup_nrf51.o
│ │ │ ├── ble_advdata.crf
│ │ │ ├── ble_advdata.d
│ │ │ ├── ble_advdata.o
│ │ │ ├── ble_app_template.axf
│ │ │ ├── ble_app_template.build_log.htm
│ │ │ ├── ble_app_template.hex
│ │ │ ├── ble_app_template.htm
│ │ │ ├── ble_app_template.lnp
│ │ │ ├── ble_app_template.map
│ │ │ ├── ble_app_template.plg
│ │ │ ├── ble_app_template.sct
│ │ │ ├── ble_app_template.tra
│ │ │ ├── ble_conn_params.crf
│ │ │ ├── ble_conn_params.d
│ │ │ ├── ble_conn_params.o
│ │ │ ├── ble_debug_assert_handler.crf
│ │ │ ├── ble_debug_assert_handler.d
│ │ │ ├── ble_debug_assert_handler.o
│ │ │ ├── ble_error_log.crf
│ │ │ ├── ble_error_log.d
│ │ │ ├── ble_error_log.o
│ │ │ ├── ble_led.crf
│ │ │ ├── ble_led.d
│ │ │ ├── ble_led.o
│ │ │ ├── ble_srv_common.crf
│ │ │ ├── ble_srv_common.d
│ │ │ ├── ble_srv_common.o
│ │ │ ├── crc16.crf
│ │ │ ├── crc16.d
│ │ │ ├── crc16.o
│ │ │ ├── ExtDll.iex
│ │ │ ├── main.crf
│ │ │ ├── main.d
│ │ │ ├── main.o
│ │ │ ├── pstorage.crf
│ │ │ ├── pstorage.d
│ │ │ ├── pstorage.o
│ │ │ ├── softdevice_handler.crf
│ │ │ ├── softdevice_handler.d
│ │ │ ├── softdevice_handler.o
│ │ │ ├── system_nrf51.crf
│ │ │ ├── system_nrf51.d
│ │ │ └── system_nrf51.o
│ │ ├── JLinkLog.txt
│ │ └── JLinkSettings.ini
│ ├── ble_led.c
│ ├── ble_led.h
│ ├── main.c
│ └── pstorage_platform.h
├── Include
│ ├── app_common
│ │ ├── app_button.h
│ │ ├── app_error.h
│ │ ├── app_fifo.h
│ │ ├── app_gpiote.h
│ │ ├── app_scheduler.h
│ │ ├── app_timer.h
│ │ ├── app_uart.h
│ │ ├── app_util.h
│ │ ├── crc16.h
│ │ ├── hal_transport.h
│ │ ├── hci_mem_pool.h
│ │ ├── hci_mem_pool_internal.h
│ │ ├── hci_slip.h
│ │ ├── hci_transport.h
│ │ └── pstorage.h
│ ├── ble
│ │ ├── ble_advdata.h
│ │ ├── ble_advdata_parser.h
│ │ ├── ble_bondmngr.h
│ │ ├── ble_central_bondmngr.h
│ │ ├── ble_conn_params.h
│ │ ├── ble_date_time.h
│ │ ├── ble_debug_assert_handler.h
│ │ ├── ble_dtm.h
│ │ ├── ble_error_log.h
│ │ ├── ble_flash.h
│ │ ├── ble_racp.h
│ │ ├── ble_radio_notification.h
│ │ ├── ble_sensorsim.h
│ │ ├── ble_services
│ │ │ ├── ble_ans_c.h
│ │ │ ├── ble_bas.h
│ │ │ ├── ble_bps.h
│ │ │ ├── ble_cscs.h
│ │ │ ├── ble_dfu.h
│ │ │ ├── ble_dis.h
│ │ │ ├── ble_gls_db.h
│ │ │ ├── ble_gls.h
│ │ │ ├── ble_hids.h
│ │ │ ├── ble_hrs.h
│ │ │ ├── ble_hts.h
│ │ │ ├── ble_ias_c.h
│ │ │ ├── ble_ias.h
│ │ │ ├── ble_lls.h
│ │ │ ├── ble_rscs.h
│ │ │ ├── ble_sc_ctrlpt.h
│ │ │ ├── ble_sensor_location.h
│ │ │ ├── ble_srv_common.h
│ │ │ └── ble_tps.h
│ │ └── rpc
│ │ ├── ble_rpc_cmd_decoder_gap.h
│ │ ├── ble_rpc_cmd_decoder_gatts.h
│ │ ├── ble_rpc_cmd_decoder.h
│ │ ├── ble_rpc_cmd_encoder.h
│ │ ├── ble_rpc_defines.h
│ │ ├── ble_rpc_event_decoder_gap.h
│ │ ├── ble_rpc_event_decoder_gatts.h
│ │ ├── ble_rpc_event_decoder.h
│ │ ├── ble_rpc_event_encoder_gap.h
│ │ ├── ble_rpc_event_encoder_gatts.h
│ │ ├── ble_rpc_event_encoder.h
│ │ └── ble_rpc_pkt_receiver.h
│ ├── boards
│ │ ├── nrf6310.h
│ │ ├── pca10000.h
│ │ ├── pca10001.h
│ │ ├── pca10003.h
│ │ └── pca1000x.h
│ ├── boards.h
│ ├── common.h
│ ├── compiler_abstraction.h
│ ├── console.h
│ ├── device_manager.h
│ ├── esb
│ │ ├── nrf_esb_constants.h
│ │ └── nrf_esb.h
│ ├── ext_sensors
│ │ ├── adns2080.h
│ │ ├── cherry8x16.h
│ │ ├── ds1624.h
│ │ ├── mpu6050.h
│ │ ├── nRF6350.h
│ │ ├── sdio.h
│ │ └── synaptics_touchpad.h
│ ├── gzll
│ │ ├── nrf_gzll_constants.h
│ │ └── nrf_gzll.h
│ ├── gzp
│ │ └── nrf_gzp.h
│ ├── nordic_common.h
│ ├── nrf51_bitfields.h
│ ├── nrf51_deprecated.h
│ ├── nrf51.h
│ ├── nrf_assert.h
│ ├── nrf_delay.h
│ ├── nrf_ecb.h
│ ├── nrf_gpio.h
│ ├── nrf_gpiote.h
│ ├── nrf.h
│ ├── nrf_nvmc.h
│ ├── nrf_temp.h
│ ├── s110
│ │ ├── ble_err.h
│ │ ├── ble_gap.h
│ │ ├── ble_gattc.h
│ │ ├── ble_gatt.h
│ │ ├── ble_gatts.h
│ │ ├── ble.h
│ │ ├── ble_hci.h
│ │ ├── ble_l2cap.h
│ │ ├── ble_ranges.h
│ │ ├── ble_types.h
│ │ ├── nrf_error.h
│ │ ├── nrf_error_sdm.h
│ │ ├── nrf_error_soc.h
│ │ ├── nrf_sdm.h
│ │ ├── nrf_soc.h
│ │ ├── nrf_svc.h
│ │ └── softdevice_assert.h
│ ├── s120
│ │ ├── ble_err.h
│ │ ├── ble_gap.h
│ │ ├── ble_gattc.h
│ │ ├── ble_gatt.h
│ │ ├── ble_gatts.h
│ │ ├── ble.h
│ │ ├── ble_hci.h
│ │ ├── ble_l2cap.h
│ │ ├── ble_ranges.h
│ │ ├── ble_types.h
│ │ ├── nrf_error.h
│ │ ├── nrf_error_sdm.h
│ │ ├── nrf_error_soc.h
│ │ ├── nrf_sdm.h
│ │ ├── nrf_soc.h
│ │ ├── nrf_svc.h
│ │ └── softdevice_assert.h
│ ├── sd_common
│ │ ├── ant_stack_handler_types.h
│ │ ├── ble_stack_handler_types.h
│ │ └── softdevice_handler.h
│ ├── sdk
│ │ ├── debug.h
│ │ ├── sdk_common.h
│ │ ├── sdk_errors.h
│ │ └── sdk_os.h
│ ├── simple_uart.h
│ ├── spi_master.h
│ ├── spi_slave.h
│ ├── system_nrf51.h
│ └── twi_master.h
├── Lib
│ ├── esb
│ │ └── arm
│ │ ├── esb_arm.lib
│ │ └── esb_sd_resources_arm.lib
│ └── gzll
│ └── arm
│ ├── gzll_arm.lib
│ └── gzll_sd_resources_arm.lib
├── Source
│ ├── app_common
│ │ ├── app_button.c
│ │ ├── app_fifo.c
│ │ ├── app_gpiote.c
│ │ ├── app_scheduler.c
│ │ ├── app_timer.c
│ │ ├── app_uart.c
│ │ ├── app_uart_fifo.c
│ │ ├── crc16.c
│ │ ├── hci_mem_pool.c
│ │ ├── hci_slip.c
│ │ ├── hci_transport.c
│ │ └── pstorage.c
│ ├── ble
│ │ ├── ble_advdata.c
│ │ ├── ble_advdata_parser.c
│ │ ├── ble_bondmngr.c
│ │ ├── ble_conn_params.c
│ │ ├── ble_debug_assert_handler.c
│ │ ├── ble_dtm.c
│ │ ├── ble_error_log.c
│ │ ├── ble_flash.c
│ │ ├── ble_racp.c
│ │ ├── ble_radio_notification.c
│ │ ├── ble_sensorsim.c
│ │ ├── ble_services
│ │ │ ├── ble_ans_c.c
│ │ │ ├── ble_bas.c
│ │ │ ├── ble_bps.c
│ │ │ ├── ble_cscs.c
│ │ │ ├── ble_dfu.c
│ │ │ ├── ble_dis.c
│ │ │ ├── ble_gls.c
│ │ │ ├── ble_gls_db.c
│ │ │ ├── ble_hids.c
│ │ │ ├── ble_hrs.c
│ │ │ ├── ble_hts.c
│ │ │ ├── ble_ias.c
│ │ │ ├── ble_ias_c.c
│ │ │ ├── ble_lls.c
│ │ │ ├── ble_rscs.c
│ │ │ ├── ble_sc_ctrlpt.c
│ │ │ ├── ble_srv_common.c
│ │ │ └── ble_tps.c
│ │ └── rpc
│ │ ├── ble_rpc_cmd_decoder.c
│ │ ├── ble_rpc_cmd_decoder_gap.c
│ │ ├── ble_rpc_cmd_decoder_gatts.c
│ │ ├── ble_rpc_cmd_encoder.c
│ │ ├── ble_rpc_cmd_encoder_gap.c
│ │ ├── ble_rpc_cmd_encoder_gatts.c
│ │ ├── ble_rpc_event_decoder.c
│ │ ├── ble_rpc_event_decoder_gap.c
│ │ ├── ble_rpc_event_decoder_gatts.c
│ │ ├── ble_rpc_event_encoder.c
│ │ ├── ble_rpc_event_encoder_gap.c
│ │ ├── ble_rpc_event_encoder_gatts.c
│ │ ├── ble_rpc_pkt_receiver.c
│ │ ├── ble_rpc_sd_stub.c
│ │ └── _test_
│ │ ├── ble_cmd_decoder
│ │ │ ├── cmd_decoder_cunit.uvproj
│ │ │ ├── cunit_test.c
│ │ │ ├── cunit_test_gap.c
│ │ │ ├── cunit_test_gatts.c
│ │ │ ├── cunit_test_misc.c
│ │ │ ├── _lint.bat
│ │ │ ├── lint.msbuild
│ │ │ └── Makefile
│ │ ├── ble_cmd_encoder
│ │ │ ├── ble_command_encoder_cunit.uvproj
│ │ │ ├── cunit_test.c
│ │ │ ├── cunit_test_gap.c
│ │ │ ├── cunit_test_gatts.c
│ │ │ └── Makefile
│ │ ├── ble_event_decoder
│ │ │ ├── cunit_test.c
│ │ │ ├── cunit_test_gap.c
│ │ │ ├── cunit_test_gatts.c
│ │ │ ├── Makefile
│ │ │ └── rpc_event_decoder_cunit.uvproj
│ │ ├── ble_event_encoder
│ │ │ ├── cunit_test.c
│ │ │ ├── cunit_test_gap.c
│ │ │ ├── cunit_test_gatts.c
│ │ │ ├── Makefile
│ │ │ └── rpc_event_encoder_cunit.uvproj
│ │ ├── ble_rpc_pkt_receiver
│ │ │ ├── ble_rpc_pkt_receiver.uvproj
│ │ │ ├── cunit_test.c
│ │ │ └── Makefile
│ │ └── ble_rpc_sd_stub
│ │ ├── cunit_test.c
│ │ └── Makefile
│ ├── console
│ │ └── console.c
│ ├── device_manager
│ │ ├── device_manager_central.c
│ │ └── device_manager_peripheral.c
│ ├── ext_sensors
│ │ ├── adns2080
│ │ │ └── adns2080.c
│ │ ├── cherry8x16
│ │ │ └── cherry8x16.c
│ │ ├── ds1624
│ │ │ └── ds1624.c
│ │ ├── mpu6050
│ │ │ └── mpu6050.c
│ │ ├── nRF6350
│ │ │ └── nRF6350.c
│ │ ├── sdio
│ │ │ └── sdio.c
│ │ └── synaptics_touchpad
│ │ └── synaptics_touchpad.c
│ ├── gzp
│ │ ├── nrf_gzp.c
│ │ ├── nrf_gzp_device.c
│ │ ├── nrf_gzp_host.c
│ │ └── nrf_gzp_host_nrf51.c
│ ├── keil_arm_uv4.lnt
│ ├── nrf_assert
│ │ └── nrf_assert.c
│ ├── nrf_delay
│ │ └── nrf_delay.c
│ ├── nrf_ecb
│ │ └── nrf_ecb.c
│ ├── nrf_nvmc
│ │ └── nrf_nvmc.c
│ ├── sd_common
│ │ └── softdevice_handler.c
│ ├── simple_uart
│ │ └── simple_uart.c
│ ├── spi_master
│ │ └── spi_master.c
│ ├── spi_slave
│ │ └── spi_slave.c
│ ├── templates
│ │ ├── arm
│ │ │ ├── arm_startup_nrf51.s
│ │ │ └── uicr_config.h
│ │ └── system_nrf51.c
│ └── twi_master
│ ├── twi_hw_master.c
│ └── twi_sw_master.c
└── SVD
└── nrf51.xml
61 directories, 329 files
标签:
相关软件
小贴士
感谢您为本站写下的评论,您的评论对其它用户来说具有重要的参考价值,所以请认真填写。
- 类似“顶”、“沙发”之类没有营养的文字,对勤劳贡献的楼主来说是令人沮丧的反馈信息。
- 相信您也不想看到一排文字/表情墙,所以请不要反馈意义不大的重复字符,也请尽量不要纯表情的回复。
- 提问之前请再仔细看一遍楼主的说明,或许是您遗漏了。
- 请勿到处挖坑绊人、招贴广告。既占空间让人厌烦,又没人会搭理,于人于己都无利。
关于好例子网
本站旨在为广大IT学习爱好者提供一个非营利性互相学习交流分享平台。本站所有资源都可以被免费获取学习研究。本站资源来自网友分享,对搜索内容的合法性不具有预见性、识别性、控制性,仅供学习研究,请务必在下载后24小时内给予删除,不得用于其他任何用途,否则后果自负。基于互联网的特殊性,平台无法对用户传输的作品、信息、内容的权属或合法性、安全性、合规性、真实性、科学性、完整权、有效性等进行实质审查;无论平台是否已进行审查,用户均应自行承担因其传输的作品、信息、内容而可能或已经产生的侵权或权属纠纷等法律责任。本站所有资源不代表本站的观点或立场,基于网友分享,根据中国法律《信息网络传播权保护条例》第二十二与二十三条之规定,若资源存在侵权或相关问题请联系本站客服人员,点此联系我们。关于更多版权及免责申明参见 版权及免责申明
网友评论
我要评论