Graphics framework for GR-PEACH. When you use this program, we judge you have agreed to the following contents. https://developer.mbed.org/teams/Renesas/wiki/About-LICENSE

Dependents:   ImageZoomInout_Sample ImageRotaion_Sample ImageScroll_Sample GR-PEACH_LCD_4_3inch_Save_to_USB ... more

Embed: (wiki syntax)

« Back to documentation index

Show/hide line numbers r_ospl_unrecoverable.c Source File

r_ospl_unrecoverable.c

00001 /*******************************************************************************
00002 * DISCLAIMER
00003 * This software is supplied by Renesas Electronics Corporation and is only
00004 * intended for use with Renesas products. No other uses are authorized. This
00005 * software is owned by Renesas Electronics Corporation and is protected under
00006 * all applicable laws, including copyright laws.
00007 * THIS SOFTWARE IS PROVIDED "AS IS" AND RENESAS MAKES NO WARRANTIES REGARDING
00008 * THIS SOFTWARE, WHETHER EXPRESS, IMPLIED OR STATUTORY, INCLUDING BUT NOT
00009 * LIMITED TO WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE
00010 * AND NON-INFRINGEMENT. ALL SUCH WARRANTIES ARE EXPRESSLY DISCLAIMED.
00011 * TO THE MAXIMUM EXTENT PERMITTED NOT PROHIBITED BY LAW, NEITHER RENESAS
00012 * ELECTRONICS CORPORATION NOR ANY OF ITS AFFILIATED COMPANIES SHALL BE LIABLE
00013 * FOR ANY DIRECT, INDIRECT, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES FOR
00014 * ANY REASON RELATED TO THIS SOFTWARE, EVEN IF RENESAS OR ITS AFFILIATES HAVE
00015 * BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES.
00016 * Renesas reserves the right, without notice, to make changes to this software
00017 * and to discontinue the availability of this software. By using this software,
00018 * you agree to the additional terms and conditions found by accessing the
00019 * following link:
00020 * http://www.renesas.com/disclaimer
00021 * Copyright (C) 2012 - 2015 Renesas Electronics Corporation. All rights reserved.
00022 *******************************************************************************/
00023 /*******************************************************************************
00024 * $FileName: r_ospl_unrecoverable.c $
00025 *    Unrecoverable State
00026 *
00027 * $Module: OSPL $ $PublicVersion: 0.90 $ (=R_OSPL_VERSION)
00028 * $Rev: 35 $
00029 * $Date:: 2014-04-15 21:38:18 +0900#$
00030 ******************************************************************************/
00031 
00032 
00033 /******************************************************************************
00034 Includes   <System Includes> , "Project Includes"
00035 ******************************************************************************/
00036 #include  "r_ospl.h"
00037 
00038 
00039 /******************************************************************************
00040 Typedef definitions
00041 ******************************************************************************/
00042 
00043 /******************************************************************************
00044 Macro definitions
00045 ******************************************************************************/
00046 
00047 /******************************************************************************
00048 Imported global variables and functions (from other files)
00049 ******************************************************************************/
00050 
00051 /******************************************************************************
00052 Exported global variables and functions (to be accessed by other files)
00053 ******************************************************************************/
00054 
00055 /******************************************************************************
00056 Private global variables and functions
00057 ******************************************************************************/
00058 
00059 
00060 /***********************************************************************
00061 * Implement: R_OSPL_RaiseUnrecoverable
00062 ************************************************************************/
00063 void  R_OSPL_RaiseUnrecoverable( errnum_t const  e )
00064 {
00065     bool_t    was_all_enabled;  /* = false; */ /* QAC 3197 */
00066     /* ->QAC 3204 */
00067     volatile  bool_t  is_loop = true;
00068     /* <-QAC 3204 */
00069 
00070     was_all_enabled = R_OSPL_DisableAllInterrupt();
00071 
00072     R_DebugBreak( NULL, e );
00073 
00074     while ( IS( is_loop ) ) {
00075         /* Infinite Loop. Set "is_loop" by the debugger */
00076     }
00077 
00078     if ( IS( was_all_enabled ) ) {
00079         R_OSPL_EnableAllInterrupt();
00080     }
00081 }
00082 
00083