基于nrf52840开发板ble mesh之在light-swtich移植uart

1.简述

        此篇文章是在light-swtich移植uart,增加uart功能,保证后期我们能通过串口传输数据到mesh网络中。

2.操作

2.1 开发工具 SEGGER Embedded Studio for ARM 7.32

2.2 打开对应的light-swtich的服务端代码添加源文件

app_fifo.c      app_uart_fifo.c      nrf_drv_uart.c       nrfx_atomic.c       nrfx_prs.c     nrfx_uart.c

nrfx_uarte.c         retarget.c

2.3 添加头文件

(您的 nrf5SDK 文件夹)/components/libraries/uart

(您的 nrf5SDK 文件夹)/integration/nrfx/legacy

(您的 nrf5SDK 文件夹)/components/libraries/fifo

2.4 将这些 ADD 到 app_config.h 或 sdk_config.h

#ifndef APP_FIFO_ENABLED
#define APP_FIFO_ENABLED 1
#endif

#ifndef APP_UART_ENABLED
#define APP_UART_ENABLED 1
#endif

#ifndef APP_UART_DRIVER_INSTANCE
#define APP_UART_DRIVER_INSTANCE 0
#endif

#ifndef NRFX_PRS_ENABLED
#define NRFX_PRS_ENABLED 1
#endif

#ifndef NRFX_PRS_BOX_4_ENABLED

  • 18
    点赞
  • 10
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值