diff options
Diffstat (limited to 'test/smp/regression/threadx_byte_memory_suspension_test.c')
| -rw-r--r-- | test/smp/regression/threadx_byte_memory_suspension_test.c | 16 |
1 files changed, 14 insertions, 2 deletions
diff --git a/test/smp/regression/threadx_byte_memory_suspension_test.c b/test/smp/regression/threadx_byte_memory_suspension_test.c index ba159894..3af5fc81 100644 --- a/test/smp/regression/threadx_byte_memory_suspension_test.c +++ b/test/smp/regression/threadx_byte_memory_suspension_test.c @@ -1,7 +1,19 @@ +/***************************************************************************/ +/* Copyright (c) 2024 Microsoft Corporation */ +/* Copyright (c) 2026 Eclipse ThreadX contributors */ +/* */ +/* This program and the accompanying materials are made available under */ +/* the terms of the MIT License which is available at */ +/* https://opensource.org/licenses/MIT. */ +/* */ +/* SPDX-License-Identifier: MIT */ +/***************************************************************************/ + /* This test is designed to test suspension on a memory byte pool. */ #include <stdio.h> #include "tx_api.h" +#include "threadx_test_port.h" static unsigned long thread_0_counter = 0; static TX_THREAD thread_0; @@ -121,8 +133,8 @@ CHAR *pointer; } /* Create byte pool 0. */ - status = tx_byte_pool_create(&pool_0, "pool 0", pointer, 108); - pointer = pointer + 108; + status = tx_byte_pool_create(&pool_0, "pool 0", pointer, TX_TEST_BYTE_POOL_BYTES(108)); + pointer = pointer + TX_TEST_BYTE_POOL_BYTES(108); /* Check status. */ if (status != TX_SUCCESS) |
