Skip to content

Commit

Permalink
Fixed finsh thread preemption issue for pnet project
Browse files Browse the repository at this point in the history
  • Loading branch information
kurisaW authored and Rbb666 committed Dec 9, 2024
1 parent 4b580fc commit 5da0cee
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@

#if !defined (PNET_MAX_AR)
/** Number of connections. Must be > 0. "Automated RT Tester" uses 2 */
#define PNET_MAX_AR 1
#define PNET_MAX_AR 2
#endif

#if !defined (PNET_MAX_API)
Expand Down Expand Up @@ -196,7 +196,7 @@
*/

#ifndef LOG_LEVEL
#define LOG_LEVEL (LOG_LEVEL_WARNING)
#define LOG_LEVEL (LOG_LEVEL_FATAL)
#endif

#ifndef PF_ETH_LOG
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@

#define APP_LOG_LEVEL APP_LOG_LEVEL_DEBUG

#define APP_BG_WORKER_THREAD_PRIORITY 26
#define APP_BG_WORKER_THREAD_PRIORITY 19
#define APP_BG_WORKER_THREAD_STACKSIZE 4096 /* bytes */

/********************************** Globals ***********************************/
Expand Down Expand Up @@ -166,7 +166,7 @@ static void pnet_app(void)
}
#endif

rt_thread_t pnet_thread = rt_thread_create("pnet", pnet_main, RT_NULL, 5124, 25, 10);
rt_thread_t pnet_thread = rt_thread_create("pnet", pnet_main, RT_NULL, 5124, 19, 10);
rt_thread_startup(pnet_thread);
app_status = 1;
return;
Expand Down

0 comments on commit 5da0cee

Please sign in to comment.