Fork for workshops

Committer:
JimCarver
Date:
Fri Oct 12 21:22:49 2018 +0000
Revision:
0:6b753f761943
Initial commit

Who changed what in which revision?

UserRevisionLine numberNew contents of line
JimCarver 0:6b753f761943 1 /*******************************************************************************
JimCarver 0:6b753f761943 2 * Copyright 2016, 2017 ARM Ltd.
JimCarver 0:6b753f761943 3 *
JimCarver 0:6b753f761943 4 * Licensed under the Apache License, Version 2.0 (the "License");
JimCarver 0:6b753f761943 5 * you may not use this file except in compliance with the License.
JimCarver 0:6b753f761943 6 * You may obtain a copy of the License at
JimCarver 0:6b753f761943 7 *
JimCarver 0:6b753f761943 8 * http://www.apache.org/licenses/LICENSE-2.0
JimCarver 0:6b753f761943 9 *
JimCarver 0:6b753f761943 10 * Unless required by applicable law or agreed to in writing, software
JimCarver 0:6b753f761943 11 * distributed under the License is distributed on an "AS IS" BASIS,
JimCarver 0:6b753f761943 12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
JimCarver 0:6b753f761943 13 * See the License for the specific language governing permissions and
JimCarver 0:6b753f761943 14 * limitations under the License.
JimCarver 0:6b753f761943 15 *******************************************************************************/
JimCarver 0:6b753f761943 16
JimCarver 0:6b753f761943 17 #include "unity.h"
JimCarver 0:6b753f761943 18 #include "unity_fixture.h"
JimCarver 0:6b753f761943 19 #include "pal.h"
JimCarver 0:6b753f761943 20 #if 0 // MUST GO TO PLATFORM SPECIFIC FILE
JimCarver 0:6b753f761943 21 #include "fsl_device_registers.h"
JimCarver 0:6b753f761943 22 #include "fsl_debug_console.h"
JimCarver 0:6b753f761943 23 #include "board.h"
JimCarver 0:6b753f761943 24
JimCarver 0:6b753f761943 25 #include "pin_mux.h"
JimCarver 0:6b753f761943 26 #include "clock_config.h"
JimCarver 0:6b753f761943 27
JimCarver 0:6b753f761943 28 #endif // MUST GO TO PLATFORM SPECIFIC FILE
JimCarver 0:6b753f761943 29
JimCarver 0:6b753f761943 30 TEST_GROUP_RUNNER(pal_rtos)
JimCarver 0:6b753f761943 31 {
JimCarver 0:6b753f761943 32 RUN_TEST_CASE(pal_rtos, RealTimeClockTest1);
JimCarver 0:6b753f761943 33 RUN_TEST_CASE(pal_rtos, SemaphoreWaitForever);
JimCarver 0:6b753f761943 34 RUN_TEST_CASE(pal_rtos, pal_osKernelSysTick_Unity);
JimCarver 0:6b753f761943 35 RUN_TEST_CASE(pal_rtos, pal_osKernelSysTick64_Unity);
JimCarver 0:6b753f761943 36 RUN_TEST_CASE(pal_rtos, pal_osKernelSysTickMicroSec_Unity);
JimCarver 0:6b753f761943 37 RUN_TEST_CASE(pal_rtos, pal_osKernelSysMilliSecTick_Unity);
JimCarver 0:6b753f761943 38 RUN_TEST_CASE(pal_rtos, pal_osKernelSysTickFrequency_Unity);
JimCarver 0:6b753f761943 39 RUN_TEST_CASE(pal_rtos, pal_osDelay_Unity);
JimCarver 0:6b753f761943 40 RUN_TEST_CASE(pal_rtos, BasicTimeScenario);
JimCarver 0:6b753f761943 41 RUN_TEST_CASE(pal_rtos, TimerUnityTest);
JimCarver 0:6b753f761943 42 RUN_TEST_CASE(pal_rtos, AtomicIncrementUnityTest);
JimCarver 0:6b753f761943 43 RUN_TEST_CASE(pal_rtos, GetDeviceKeyTest_CMAC);
JimCarver 0:6b753f761943 44 RUN_TEST_CASE(pal_rtos, GetDeviceKeyTest_HMAC_SHA256);
JimCarver 0:6b753f761943 45 RUN_TEST_CASE(pal_rtos, PrimitivesUnityTest1);
JimCarver 0:6b753f761943 46 RUN_TEST_CASE(pal_rtos, PrimitivesUnityTest2);
JimCarver 0:6b753f761943 47 RUN_TEST_CASE(pal_rtos, SemaphoreBasicTest);
JimCarver 0:6b753f761943 48 RUN_TEST_CASE(pal_rtos, RandomUnityTest);
JimCarver 0:6b753f761943 49 RUN_TEST_CASE(pal_rtos, loopRandomBigNumber);
JimCarver 0:6b753f761943 50 RUN_TEST_CASE(pal_rtos, pal_init_test);
JimCarver 0:6b753f761943 51 RUN_TEST_CASE(pal_rtos, Recursive_Mutex_Test);
JimCarver 0:6b753f761943 52 #if ((PAL_INT_FLASH_NUM_SECTIONS == 2) && PAL_USE_INTERNAL_FLASH)
JimCarver 0:6b753f761943 53 RUN_TEST_CASE(pal_rtos, OsWeakSetTime_Forword);
JimCarver 0:6b753f761943 54 RUN_TEST_CASE(pal_rtos, OsWeakSetTime_Backword);
JimCarver 0:6b753f761943 55 RUN_TEST_CASE(pal_rtos, OsWeakSetTime_minimalStoredLag);
JimCarver 0:6b753f761943 56 RUN_TEST_CASE(pal_rtos, OsStrongSetTime);
JimCarver 0:6b753f761943 57 #endif
JimCarver 0:6b753f761943 58 RUN_TEST_CASE(pal_rtos, pal_rtc);
JimCarver 0:6b753f761943 59 RUN_TEST_CASE(pal_rtos, pal_noise);
JimCarver 0:6b753f761943 60 }
JimCarver 0:6b753f761943 61