Skip to content

Commit e7b8c67

Browse files
author
hyhkjiy
committed
[UPD]线程栈大小
1 parent e55962e commit e7b8c67

File tree

4 files changed

+10
-4
lines changed

4 files changed

+10
-4
lines changed

.vscode/settings.json

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
{
2+
"files.associations": {
3+
"dfs_fs.h": "c"
4+
}
5+
}

projects/art_pi_ble_mesh_gateway/applications/app_jr6001.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
#include <stdio.h>
55
#include "drv_gpio.h"
66

7-
#define THREAD_STACK_SIZE 800
7+
#define THREAD_STACK_SIZE 1024
88
#define THREAD_TIMESLICE 40
99
#define SAMPLE_UART_NAME "uart1"
1010

projects/art_pi_ble_mesh_gateway/applications/app_ld3320.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111
#include "drv_gpio.h"
1212
#include "mesh_command.h"
1313

14+
#define THREAD_STACK_SIZE 1024
1415
#define LD3320_SC_PIN GET_PIN(H, 3)
1516
#define LD3320_WR_PIN GET_PIN(B, 0)
1617
#define LD3320_RST_PIN GET_PIN(B, 2)
@@ -96,7 +97,7 @@ static void ld3320_asr_thread(void *parameter)
9697
static int create_ld3320_asr_thread(void)
9798
{
9899
rt_thread_t thread = RT_NULL;
99-
thread = rt_thread_create("ld_asr", ld3320_asr_thread, RT_NULL, 1000, 15, 100);
100+
thread = rt_thread_create("ld_asr", ld3320_asr_thread, RT_NULL, THREAD_STACK_SIZE, 15, 100);
100101
if (thread != RT_NULL)
101102
{
102103
rt_thread_startup(thread);

projects/art_pi_ble_mesh_gateway/applications/app_mesh_device.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,8 @@
1010
#define LOG_LVL LOG_LVL_DBG
1111
#include <ulog.h>
1212

13-
#define RX_THREAD_STACK_SIZE 500
14-
#define TX_THREAD_STACK_SIZE 600
13+
#define RX_THREAD_STACK_SIZE 512
14+
#define TX_THREAD_STACK_SIZE 512
1515
#define THREAD_TIMESLICE 40
1616
#define UART_NAME "uart5"
1717

0 commit comments

Comments
 (0)