mbed-os for GR-LYCHEE

Dependents:   mbed-os-example-blinky-gr-lychee GR-Boads_Camera_sample GR-Boards_Audio_Recoder GR-Boads_Camera_DisplayApp ... more

Committer:
dkato
Date:
Fri Feb 02 05:42:23 2018 +0000
Revision:
0:f782d9c66c49
mbed-os for GR-LYCHEE

Who changed what in which revision?

UserRevisionLine numberNew contents of line
dkato 0:f782d9c66c49 1 /****************************************************************************
dkato 0:f782d9c66c49 2 * Copyright (c) 2015, ARM Limited, All Rights Reserved
dkato 0:f782d9c66c49 3 * SPDX-License-Identifier: Apache-2.0
dkato 0:f782d9c66c49 4 *
dkato 0:f782d9c66c49 5 * Licensed under the Apache License, Version 2.0 (the "License"); you may
dkato 0:f782d9c66c49 6 * not use this file except in compliance with the License.
dkato 0:f782d9c66c49 7 * You may obtain a copy of the License at
dkato 0:f782d9c66c49 8 *
dkato 0:f782d9c66c49 9 * http://www.apache.org/licenses/LICENSE-2.0
dkato 0:f782d9c66c49 10 *
dkato 0:f782d9c66c49 11 * Unless required by applicable law or agreed to in writing, software
dkato 0:f782d9c66c49 12 * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
dkato 0:f782d9c66c49 13 * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
dkato 0:f782d9c66c49 14 * See the License for the specific language governing permissions and
dkato 0:f782d9c66c49 15 * limitations under the License.
dkato 0:f782d9c66c49 16 ****************************************************************************
dkato 0:f782d9c66c49 17 */
dkato 0:f782d9c66c49 18
dkato 0:f782d9c66c49 19 #include "utest/utest_harness.h"
dkato 0:f782d9c66c49 20 #include "utest/utest_stack_trace.h"
dkato 0:f782d9c66c49 21 #include "utest/unity_handler.h"
dkato 0:f782d9c66c49 22 #include "greentea-client/greentea_serial.h"
dkato 0:f782d9c66c49 23
dkato 0:f782d9c66c49 24 void utest_unity_assert_failure(void)
dkato 0:f782d9c66c49 25 {
dkato 0:f782d9c66c49 26 UTEST_LOG_FUNCTION();
dkato 0:f782d9c66c49 27 utest::v1::Harness::raise_failure(utest::v1::REASON_ASSERTION);
dkato 0:f782d9c66c49 28 }
dkato 0:f782d9c66c49 29
dkato 0:f782d9c66c49 30 void utest_unity_ignore_failure(void)
dkato 0:f782d9c66c49 31 {
dkato 0:f782d9c66c49 32 UTEST_LOG_FUNCTION();
dkato 0:f782d9c66c49 33 utest::v1::Harness::raise_failure(utest::v1::failure_reason_t(utest::v1::REASON_ASSERTION | utest::v1::REASON_IGNORE));
dkato 0:f782d9c66c49 34 }
dkato 0:f782d9c66c49 35
dkato 0:f782d9c66c49 36 void utest_safe_putc(int chr)
dkato 0:f782d9c66c49 37 {
dkato 0:f782d9c66c49 38 greentea_serial->putc(chr);
dkato 0:f782d9c66c49 39 }
dkato 0:f782d9c66c49 40
dkato 0:f782d9c66c49 41