Ram Gandikota
/
IOTMetronome
FRDM K64F Metronome
pal/Test/Common/pal_rtos_test_utils.h
- Committer:
- ram54288
- Date:
- 2017-05-14
- Revision:
- 0:dbad57390bd1
File content as of revision 0:dbad57390bd1:
/* * Copyright (c) 2016 ARM Limited. All rights reserved. * SPDX-License-Identifier: Apache-2.0 * Licensed under the Apache License, Version 2.0 (the License); you may * not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an AS IS BASIS, WITHOUT * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ #ifndef _PAL_RTOS_TEST_UTILS_H #define _PAL_RTOS_TEST_UTILS_H #include "pal_types.h" #include "pal_rtos.h" #include "pal_test_utils.h" #define THREAD_STACK_SIZE 1024*sizeof(uint32_t) typedef struct threadsArgument{ uint32_t arg1; uint32_t arg2; uint32_t arg3; uint32_t arg4; uint32_t arg5; uint32_t arg6; uint32_t arg7; }threadsArgument_t; extern threadsArgument_t g_threadsArg; extern uint32_t g_threadStorage[20]; void palThreadFunc1(void const *argument); void palThreadFunc2(void const *argument); void palThreadFunc3(void const *argument); void palThreadFunc4(void const *argument); void palThreadFunc5(void const *argument); void palThreadFunc6(void const *argument); typedef struct timerArgument{ uint32_t ticksBeforeTimer; uint32_t ticksInFunc1; uint32_t ticksInFunc2; }timerArgument_t; extern timerArgument_t g_timerArgs; void palTimerFunc1(void const *argument); void palTimerFunc2(void const *argument); void palThreadFuncCustom1(void const *argument); void palThreadFuncCustom2(void const *argument); void palThreadFuncCustom3(void const *argument); void palThreadFuncCustom4(void const *argument); #define MEMORY_POOL1_BLOCK_SIZE 32 #define MEMORY_POOL1_BLOCK_COUNT 5 #define MEMORY_POOL2_BLOCK_SIZE 12 #define MEMORY_POOL2_BLOCK_COUNT 4 extern palMutexID_t mutex1; extern palMutexID_t mutex2; extern palSemaphoreID_t semaphore1; #endif //_PAL_RTOS_TEST_UTILS_H