- 博客(4)
- 收藏
- 关注
原创 nordic uart ble_central程序分析
1、程序中第一个指令buttons_leds_init(); 1.1 err_code = bsp_init(BSP_INIT_LED, bsp_event_handler); //BSP_INIT_LED,为所使用的外设资源; //bsp_event_handler为回调函数的句柄。当有按键按下时将被调用。 ---- void bsp_event_handler(bsp_event_t eve...
2019-02-18 13:37:55
1283
原创 nordic nFR52832 PCA10040 blinky例程分析
1、建立Service结构体,包含了建立service、characteristic相关信息Handle。 struct ble_lbs_s { uint16_t service_handle; /服务句柄,蓝牙栈提供 ble_gatts_char_handles_t led_char_handles; /*指向LED特征句柄 ble_gatts_cha...
2019-01-29 00:15:01
1657
转载 nordic nFR52832 结构框架
1、softdevice是以二进制文件形式,同时softdevice是通过SVC中断和软中断来实现与应用程序交互的。每一个softdevice API对应一个SVC异常号(softdevice API是非阻塞的)。每当应用程序调用softdevice API,其实是产生一个SVC异常,然后进入到softdevice协议栈,由softdevice的SVC handler进行相应处理。 softd...
2019-01-28 00:06:15
1285
2
原创 Nordic nRF52832-PCA100A0-GPIO设置
1、在#include "nrf_gpio.h"中定义有 // LEDs definitions for PCA10040 #define LEDS_NUMBER 4 #define LED_START 17 #define LED_1 17 #define LED_2 18 #define LED_3 19 #define L...
2019-01-27 23:10:36
1092
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人