Task wacht nur bei Nachricht auf. nachricht kommt alle 500ms
This commit is contained in:
parent
92efd9a290
commit
9515deab50
@ -18,8 +18,7 @@ void LED(ULONG thread_input)
|
|||||||
|
|
||||||
while(true)
|
while(true)
|
||||||
{
|
{
|
||||||
// tx_thread_sleep(500U);
|
tx_queue_receive(&q_LED, &msg, TX_WAIT_FOREVER);
|
||||||
tx_queue_receive(&q_LED, &msg, 500UL);
|
|
||||||
|
|
||||||
LL_GPIO_TogglePin(GPIOA, LL_GPIO_PIN_10);
|
LL_GPIO_TogglePin(GPIOA, LL_GPIO_PIN_10);
|
||||||
}
|
}
|
||||||
|
@ -173,7 +173,7 @@ void thread(ULONG thread_input)
|
|||||||
{
|
{
|
||||||
while(true)
|
while(true)
|
||||||
{
|
{
|
||||||
tx_thread_sleep(1000U);
|
tx_thread_sleep(500U);
|
||||||
|
|
||||||
tx_queue_send(&q_LED, &thread_input, TX_NO_WAIT);
|
tx_queue_send(&q_LED, &thread_input, TX_NO_WAIT);
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user