This is the final version of Mini Gateway for Automation and Security desgined for Renesas GR Peach Design Contest

Dependencies:   GR-PEACH_video GraphicsFramework HTTPServer R_BSP mbed-rpc mbed-rtos Socket lwip-eth lwip-sys lwip FATFileSystem

Fork of mbed-os-example-mbed5-blinky by mbed-os-examples

Committer:
vipinranka
Date:
Wed Jan 11 11:41:30 2017 +0000
Revision:
12:9a20164dcc47
This is the final version MGAS Project for Renesas GR Peach Design Contest

Who changed what in which revision?

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