We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
` ccmBss uint8_t testThread1_stack[256 * 4]; static osThreadId_t testThread1Handle; static const osThreadAttr_t testThread1_attributes = { .name = "testThread1", .stack_size = 256 * 4, .stack_mem = (void *)testThread1_stack, .priority = (osPriority_t)osPriorityNormal7,
};
ccmBss uint8_t testThread2_stack[256 * 4]; static osThreadId_t testThread2Handle; static const osThreadAttr_t testThread2_attributes = { .name = "testThread1", .stack_size = 256 * 4, .stack_mem = (void *)testThread2_stack, .priority = (osPriority_t)osPriorityLow7,
void testThread1(void *argument) { while (1) {
osThreadFlagsSet(testThread2Handle, BIT2); printf("已发送........\r\n"); osDelay(2000); }
}
void testThread2(void *argument) { while (1) {
uint32_t res = osThreadFlagsWait(BIT2, osFlagsWaitAny, 4000); ulog_w(TAG, "res: %d", res); }
}`
这是我的代码,线程1发送线程标志位给线程2,线程2接受。正常情况应该线程1设置标志位后,线程2立即响应。下面是我的打印信息
The text was updated successfully, but these errors were encountered:
No branches or pull requests
`
ccmBss uint8_t testThread1_stack[256 * 4];
static osThreadId_t testThread1Handle;
static const osThreadAttr_t testThread1_attributes = {
.name = "testThread1",
.stack_size = 256 * 4,
.stack_mem = (void *)testThread1_stack,
.priority = (osPriority_t)osPriorityNormal7,
};
ccmBss uint8_t testThread2_stack[256 * 4];
static osThreadId_t testThread2Handle;
static const osThreadAttr_t testThread2_attributes = {
.name = "testThread1",
.stack_size = 256 * 4,
.stack_mem = (void *)testThread2_stack,
.priority = (osPriority_t)osPriorityLow7,
};
void testThread1(void *argument)
{
while (1)
{
}
void testThread2(void *argument)
{
while (1)
{
}`
这是我的代码,线程1发送线程标志位给线程2,线程2接受。正常情况应该线程1设置标志位后,线程2立即响应。下面是我的打印信息
The text was updated successfully, but these errors were encountered: