Opencv 3.1 project on GR-PEACH board

Fork of gr-peach-opencv-project by the do

Committer:
thedo
Date:
Thu Jun 29 11:01:39 2017 +0000
Revision:
167:1657b442184c
Opencv 3.1 project on GR-PEACH board, 4 apps

Who changed what in which revision?

UserRevisionLine numberNew contents of line
thedo 167:1657b442184c 1
thedo 167:1657b442184c 2 /** \addtogroup platform */
thedo 167:1657b442184c 3 /** @{*/
thedo 167:1657b442184c 4 /* mbed Microcontroller Library
thedo 167:1657b442184c 5 * Copyright (c) 2006-2013 ARM Limited
thedo 167:1657b442184c 6 *
thedo 167:1657b442184c 7 * Licensed under the Apache License, Version 2.0 (the "License");
thedo 167:1657b442184c 8 * you may not use this file except in compliance with the License.
thedo 167:1657b442184c 9 * You may obtain a copy of the License at
thedo 167:1657b442184c 10 *
thedo 167:1657b442184c 11 * http://www.apache.org/licenses/LICENSE-2.0
thedo 167:1657b442184c 12 *
thedo 167:1657b442184c 13 * Unless required by applicable law or agreed to in writing, software
thedo 167:1657b442184c 14 * distributed under the License is distributed on an "AS IS" BASIS,
thedo 167:1657b442184c 15 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
thedo 167:1657b442184c 16 * See the License for the specific language governing permissions and
thedo 167:1657b442184c 17 * limitations under the License.
thedo 167:1657b442184c 18 */
thedo 167:1657b442184c 19 #ifndef MBED_ERROR_H
thedo 167:1657b442184c 20 #define MBED_ERROR_H
thedo 167:1657b442184c 21
thedo 167:1657b442184c 22 /** To generate a fatal compile-time error, you can use the pre-processor #error directive.
thedo 167:1657b442184c 23 *
thedo 167:1657b442184c 24 * @code
thedo 167:1657b442184c 25 * #error "That shouldn't have happened!"
thedo 167:1657b442184c 26 * @endcode
thedo 167:1657b442184c 27 *
thedo 167:1657b442184c 28 * If the compiler evaluates this line, it will report the error and stop the compile.
thedo 167:1657b442184c 29 *
thedo 167:1657b442184c 30 * For example, you could use this to check some user-defined compile-time variables:
thedo 167:1657b442184c 31 *
thedo 167:1657b442184c 32 * @code
thedo 167:1657b442184c 33 * #define NUM_PORTS 7
thedo 167:1657b442184c 34 * #if (NUM_PORTS > 4)
thedo 167:1657b442184c 35 * #error "NUM_PORTS must be less than 4"
thedo 167:1657b442184c 36 * #endif
thedo 167:1657b442184c 37 * @endcode
thedo 167:1657b442184c 38 *
thedo 167:1657b442184c 39 * Reporting Run-Time Errors:
thedo 167:1657b442184c 40 * To generate a fatal run-time error, you can use the mbed error() function.
thedo 167:1657b442184c 41 *
thedo 167:1657b442184c 42 * @code
thedo 167:1657b442184c 43 * error("That shouldn't have happened!");
thedo 167:1657b442184c 44 * @endcode
thedo 167:1657b442184c 45 *
thedo 167:1657b442184c 46 * If the mbed running the program executes this function, it will print the
thedo 167:1657b442184c 47 * message via the USB serial port, and then die with the blue lights of death!
thedo 167:1657b442184c 48 *
thedo 167:1657b442184c 49 * The message can use printf-style formatting, so you can report variables in the
thedo 167:1657b442184c 50 * message too. For example, you could use this to check a run-time condition:
thedo 167:1657b442184c 51 *
thedo 167:1657b442184c 52 * @code
thedo 167:1657b442184c 53 * if(x >= 5) {
thedo 167:1657b442184c 54 * error("expected x to be less than 5, but got %d", x);
thedo 167:1657b442184c 55 * }
thedo 167:1657b442184c 56 * @endcode
thedo 167:1657b442184c 57 */
thedo 167:1657b442184c 58
thedo 167:1657b442184c 59 #ifdef __cplusplus
thedo 167:1657b442184c 60 extern "C" {
thedo 167:1657b442184c 61 #endif
thedo 167:1657b442184c 62
thedo 167:1657b442184c 63 void error(const char* format, ...);
thedo 167:1657b442184c 64
thedo 167:1657b442184c 65 #ifdef __cplusplus
thedo 167:1657b442184c 66 }
thedo 167:1657b442184c 67 #endif
thedo 167:1657b442184c 68
thedo 167:1657b442184c 69 #endif
thedo 167:1657b442184c 70
thedo 167:1657b442184c 71 /** @}*/
thedo 167:1657b442184c 72