- 1
- 2
- 3
- 4
- 5
蓝牙模块nRF52810_UART
资料介绍
#include <stdint.h>
#include <string.h>
#include "nordic_common.h"
#include "nrf.h"
#include "ble_hci.h"
#include "ble_advdata.h"
#include "ble_advertising.h"
#include "ble_conn_params.h"
#include "nrf_sdh.h"
#include "nrf_sdh_soc.h"
#include "nrf_sdh_ble.h"
#include "nrf_ble_gatt.h"
#include "nrf_ble_qwr.h"
#include "app_timer.h"
#include "ble_nus.h"
#include "app_uart.h"
#include "app_util_platform.h"
#include "bsp_btn_ble.h"
#include "nrf_pwr_mgmt.h"
#if defined (UART_PRESENT)
#include "nrf_uart.h"
#endif
#if defined (UARTE_PRESENT)
#include "nrf_uarte.h"
#endif
#include "nrf_log.h"
#include "nrf_log_ctrl.h"
#include "nrf_log_default_backends.h"
#define APP_BLE_CONN_CFG_TAG 1 /**< A tag identifying the SoftDevice BLE configuration. */
#define DEVICE_NAME "JOE_UART" /**< Name of device. Will be included in the advertising data. */
#define NUS_SERVICE_UUID_TYPE BLE_UUID_TYPE_VENDOR_BEGIN /**< UUID type for the Nordic UART Service (vendor specific). */
#define APP_BLE_OBSERVER_PRIO 3 /**< Application's BLE observer priority. You shouldn't need to modify this value. */
#define APP_ADV_INTERVAL 64 /**< The advertising interval (in units of 0.625 ms. This value corresponds to 40 ms). */
#define APP_ADV_DURATION 18000 /**< The advertising duration (180 seconds) in units of 10 milliseconds. */
#define MIN_CONN_INTERVAL MSEC_TO_UNITS(20, UNIT_1_25_MS) /**< Minimum acceptable connection interval (20 ms), Connection interval uses 1.25 ms units. */
#define MAX_CONN_INTERVAL MSEC_TO_UNITS(75, UNIT_1_25_MS) /**< Maximum acceptable connection interval (75 ms), Connection interval uses 1.25 ms units. */
#define SLAVE_LATENCY 0 /**< Slave latency. */
#define CONN_SUP_TIMEOUT MSEC_TO_UNITS(4000, UNIT_10_MS) /**< Connection supervisory timeout (4 seconds), Supervision Timeout uses 10 ms units. */
#define FIRST_CONN_PARAMS_UPDATE_DELAY APP_TIMER_TICKS(5000) /**< Time from initiating event (connect or start of notification) to first time sd_ble_gap_conn_param_update is called (5 seconds). */
#define NEXT_CONN_PARAMS_UPDATE_DELAY APP_TIMER_TICKS(30000) /**< Time between each call to sd_ble_gap_conn_param_update after the first call (30 seconds). */
#define MAX_CONN_PARAMS_UPDATE_COUNT 3 /**< Number of attempts before giving up the connection parameter negotiation. */
#define DEAD_BEEF 0xDEADBEEF /**< Value used as error code on stack dump, can be used to identify stack location on stack unwind. */
#define UART_TX_BUF_SIZE 256 /**< UART TX buffer size. */
#define UART_RX_BUF_SIZE 256 /**< UART RX buffer size. */
部分文件列表
文件名 | 文件大小 | 修改时间 |
nRF52_UART_DEMO/components/802_15_4/api/HAL/hal_atomic.h | 3KB | 2018-03-22 22:25:06 |
nRF52_UART_DEMO/components/802_15_4/api/HAL/hal_clock.h | 2KB | 2018-03-22 22:25:06 |
nRF52_UART_DEMO/components/802_15_4/api/HAL/hal_debug_interface.h | 4KB | 2018-03-22 22:25:06 |
nRF52_UART_DEMO/components/802_15_4/api/HAL/hal_delay.h | 3KB | 2018-03-22 22:25:06 |
nRF52_UART_DEMO/components/802_15_4/api/HAL/hal_led.h | 2KB | 2018-03-22 22:25:06 |
nRF52_UART_DEMO/components/802_15_4/api/HAL/hal_mutex.h | 3KB | 2018-03-22 22:25:06 |
nRF52_UART_DEMO/components/802_15_4/api/HAL/hal_rng.h | 3KB | 2018-03-22 22:25:06 |
nRF52_UART_DEMO/components/802_15_4/api/HAL/hal_sleep.h | 4KB | 2018-03-22 22:25:06 |
nRF52_UART_DEMO/components/802_15_4/api/HAL/hal_task_scheduler.h | 4KB | 2018-03-22 22:25:06 |
nRF52_UART_DEMO/components/802_15_4/api/HAL/hal_timer.h | 3KB | 2018-03-22 22:25:06 |
nRF52_UART_DEMO/components/802_15_4/api/HAL/hal_timer_critical.h | 3KB | 2018-03-22 22:25:06 |
... |
最新上传
-
21ic下载 打赏310.00元 3天前
用户:zhengdai
-
21ic下载 打赏310.00元 3天前
用户:小猫做电路
-
21ic下载 打赏310.00元 3天前
用户:gsy幸运
-
21ic下载 打赏210.00元 3天前
用户:kk1957135547
-
21ic下载 打赏210.00元 3天前
用户:w178191520
-
21ic下载 打赏210.00元 3天前
用户:liqiang9090
-
21ic下载 打赏100.00元 3天前
用户:jh03551
-
21ic下载 打赏110.00元 3天前
用户:1111111ffgg
-
21ic下载 打赏30.00元 3天前
用户:sun2152
-
21ic下载 打赏25.00元 3天前
用户:玉落彼岸
-
21ic下载 打赏20.00元 3天前
用户:xuzhen1
-
21ic下载 打赏15.00元 3天前
用户:WK520077778
-
21ic下载 打赏15.00元 3天前
用户:x15580286248
-
21ic下载 打赏25.00元 3天前
用户:天融之境
-
21ic下载 打赏5.00元 3天前
用户:qminiup
-
21ic下载 打赏5.00元 3天前
用户:xiaomage1991
-
21ic下载 打赏5.00元 3天前
用户:Nara
-
21ic小能手 打赏5.00元 3天前
-
21ic小能手 打赏5.00元 3天前
-
21ic小能手 打赏5.00元 3天前
资料:2KW超声波电源设计
-
21ic小能手 打赏5.00元 3天前
-
21ic小能手 打赏10.00元 3天前
-
21ic小能手 打赏5.00元 3天前
-
21ic小能手 打赏5.00元 3天前
资料:八卦PCB图
-
21ic小能手 打赏5.00元 3天前
-
21ic小能手 打赏5.00元 3天前
-
21ic小能手 打赏5.00元 3天前
资料:扫码枪仿真和读取范例
-
21ic小能手 打赏5.00元 3天前
-
21ic小能手 打赏5.00元 3天前
-
21下载积分 打赏10.00元 3天前
用户:玉落彼岸
-
21ic下载 打赏310.00元 3天前
用户:小猫做电路
-
21ic下载 打赏310.00元 3天前
用户:zhengdai
-
21ic下载 打赏310.00元 3天前
用户:gsy幸运
-
21ic下载 打赏260.00元 3天前
用户:kk1957135547
-
21ic下载 打赏210.00元 3天前
用户:w178191520
-
21ic下载 打赏230.00元 3天前
用户:liqiang9090
-
21ic下载 打赏120.00元 3天前
用户:1111111ffgg
-
21ic下载 打赏25.00元 3天前
用户:sun2152
-
21ic下载 打赏30.00元 3天前
用户:WK520077778
-
21ic下载 打赏25.00元 3天前
用户:xzxbybd
全部评论(0)