Task wacht nur bei Nachricht auf. nachricht kommt alle 500ms

This commit is contained in:
Carsten Keller 2024-04-21 18:34:05 +02:00
parent 92efd9a290
commit 9515deab50
Signed by: carsten
GPG Key ID: DF06343A3A9B8868
2 changed files with 2 additions and 3 deletions

View File

@ -18,8 +18,7 @@ void LED(ULONG thread_input)
while(true)
{
// tx_thread_sleep(500U);
tx_queue_receive(&q_LED, &msg, 500UL);
tx_queue_receive(&q_LED, &msg, TX_WAIT_FOREVER);
LL_GPIO_TogglePin(GPIOA, LL_GPIO_PIN_10);
}

View File

@ -173,7 +173,7 @@ void thread(ULONG thread_input)
{
while(true)
{
tx_thread_sleep(1000U);
tx_thread_sleep(500U);
tx_queue_send(&q_LED, &thread_input, TX_NO_WAIT);
}