nordic ble mesh的SDK在哪设置mesh协议栈优先级
时间: 2024-02-24 13:59:37 浏览: 221
Nordic BLE Mesh 文档
在Nordic BLE Mesh SDK中,可以通过修改配置文件来设置mesh协议栈的优先级。具体来说,可以在`config/nrf_mesh_sdk_config.h`文件中修改以下宏定义:
```
#define NRF_MESH_RX_PRIO (7) /**< Priority for the mesh stack's RX IRQ. */
#define NRF_MESH_UTILS_PRIO (6) /**< Priority for the mesh stack's internal utility IRQs (timers, etc.). */
#define NRF_MESH_IRQ_PRIORITY (6) /**< Priority for the mesh stack's external IRQs (buttons, sensors, etc.). */
#define NRF_MESH_RADIO_PRIORITY (1) /**< Priority for the mesh stack's radio IRQ. */
```
这些宏定义分别对应不同的优先级,可以根据实际需求进行修改。需要注意的是,优先级数字越小,表示优先级越高。因此,将`NRF_MESH_RADIO_PRIORITY`设置为1表示将mesh协议栈的radio IRQ设置为最高优先级。
阅读全文