diff options
author | patacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3> | 2009-12-16 16:28:31 +0000 |
---|---|---|
committer | patacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3> | 2009-12-16 16:28:31 +0000 |
commit | c33cfd52449fc6c1b9211cb45618a77b544876e6 (patch) | |
tree | 4c6a9b7e711b34da34e9878e08d63c8c1dd14be5 /nuttx/arch/pjrc-8051/src/up_interruptcontext.c | |
parent | f8a2fb3042d58963a00fe808d18f84eec6a0be71 (diff) | |
download | px4-nuttx-c33cfd52449fc6c1b9211cb45618a77b544876e6.tar.gz px4-nuttx-c33cfd52449fc6c1b9211cb45618a77b544876e6.tar.bz2 px4-nuttx-c33cfd52449fc6c1b9211cb45618a77b544876e6.zip |
Changing NuttX fixed size type names to C99 standard names -- things will be broken for awhile
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@2358 42af7a65-404d-4744-a932-0658087f49c3
Diffstat (limited to 'nuttx/arch/pjrc-8051/src/up_interruptcontext.c')
-rw-r--r-- | nuttx/arch/pjrc-8051/src/up_interruptcontext.c | 36 |
1 files changed, 19 insertions, 17 deletions
diff --git a/nuttx/arch/pjrc-8051/src/up_interruptcontext.c b/nuttx/arch/pjrc-8051/src/up_interruptcontext.c index 26b5ad2ae..81426a94e 100644 --- a/nuttx/arch/pjrc-8051/src/up_interruptcontext.c +++ b/nuttx/arch/pjrc-8051/src/up_interruptcontext.c @@ -1,7 +1,7 @@ -/************************************************************ +/************************************************************************ * up_interruptcontext.c * - * Copyright (C) 2007 Gregory Nutt. All rights reserved. + * Copyright (C) 2007, 2009 Gregory Nutt. All rights reserved. * Author: Gregory Nutt <spudmonkey@racsa.co.cr> * * Redistribution and use in source and binary forms, with or without @@ -14,7 +14,7 @@ * notice, this list of conditions and the following disclaimer in * the documentation and/or other materials provided with the * distribution. - * 3. Neither the name Gregory Nutt nor the names of its contributors may be + * 3. Neither the name NuttX nor the names of its contributors may be * used to endorse or promote products derived from this software * without specific prior written permission. * @@ -31,38 +31,40 @@ * ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE * POSSIBILITY OF SUCH DAMAGE. * - ************************************************************/ + ************************************************************************/ -/************************************************************ +/************************************************************************ * Included Files - ************************************************************/ + ************************************************************************/ #include <nuttx/config.h> -#include <sys/types.h> + +#include <stdbool.h> #include <nuttx/arch.h> #include <nuttx/irq.h> + #include "up_internal.h" -/************************************************************ +/************************************************************************ * Private Types - ************************************************************/ + ************************************************************************/ -/************************************************************ +/************************************************************************ * Private Function Prototypes - ************************************************************/ + ************************************************************************/ -/************************************************************ +/************************************************************************ * Global Functions - ************************************************************/ + ************************************************************************/ -/************************************************************ +/************************************************************************ * Name: up_interrupt_context * - * Description: Return TRUE is we are currently executing in + * Description: Return true is we are currently executing in * the interrupt handler context. - ************************************************************/ + ************************************************************************/ -boolean up_interrupt_context(void) +bool up_interrupt_context(void) { return g_irqtos != 0; } |