rfLPC
A low level library for using NXP's LPC17xx SoC. Config is given for MBED prototyping board
setjmp.h
1 /* This file is part of rflpc. Copyright 2010-2011 Michael Hauspie
2  *
3  * rflpc is free software: you can redistribute it and/or modify
4  * it under the terms of the GNU General Public License as published by
5  * the Free Software Foundation, either version 3 of the License, or
6  * (at your option) any later version.
7  *
8  * rflpc is distributed in the hope that it will be useful,
9  * but WITHOUT ANY WARRANTY; without even the implied warranty of
10  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11  * GNU General Public License for more details.
12  *
13  * You should have received a copy of the GNU General Public License
14  * along with rflpc. If not, see <http://www.gnu.org/licenses/>.
15  */
16 /*
17  Author: Michael Hauspie <michael.hauspie@univ-lille1.fr>
18  Created:
19  Time-stamp: <2012-03-21 09:30:02 (hauspie)>
20 */
21 #ifndef __RFLPC_SETJMP_H__
22 #define __RFLPC_SETJMP_H__
23 
24 #ifdef RFLPC_CONFIG_ENABLE_SETJMP
25 
26 #include <stdint.h>
27 
28 typedef uint32_t jmp_buf[12];
29 
36 extern int setjmp(jmp_buf env);
37 
46 extern int longjmp(jmp_buf env, int val);
47 
48 #endif /* ENABLE_SETJMP */
49 
50 #endif