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_assert.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_assert.c')
-rw-r--r-- | nuttx/arch/pjrc-8051/src/up_assert.c | 47 |
1 files changed, 24 insertions, 23 deletions
diff --git a/nuttx/arch/pjrc-8051/src/up_assert.c b/nuttx/arch/pjrc-8051/src/up_assert.c index a0d04c393..157b18ae5 100644 --- a/nuttx/arch/pjrc-8051/src/up_assert.c +++ b/nuttx/arch/pjrc-8051/src/up_assert.c @@ -1,7 +1,7 @@ -/************************************************************ +/************************************************************************ * up_assert.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,39 @@ * 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 <stdlib.h> #include <assert.h> #include <sched.h> #include <debug.h> + #include <8052.h> #include "os_internal.h" #include "up_internal.h" #include "up_mem.h" -/************************************************************ +/************************************************************************ * Definitions - ************************************************************/ + ************************************************************************/ -/************************************************************ +/************************************************************************ * Private Data - ************************************************************/ + ************************************************************************/ -/************************************************************ +/************************************************************************ * Private Functions - ************************************************************/ + ************************************************************************/ -/************************************************************ +/************************************************************************ * Name: _up_assert - ************************************************************/ + ************************************************************************/ static void _up_assert(int errorcode) /* __attribute__ ((noreturn)) */ { @@ -87,15 +88,15 @@ static void _up_assert(int errorcode) /* __attribute__ ((noreturn)) */ } } -/************************************************************ +/************************************************************************ * Public Functions - ************************************************************/ + ************************************************************************/ -/************************************************************ +/************************************************************************ * Name: up_assert - ************************************************************/ + ************************************************************************/ -void up_assert(const ubyte *filename, int lineno) +void up_assert(const uint8_t *filename, int lineno) { #if CONFIG_TASK_NAME_SIZE > 0 _TCB *rtcb = (_TCB*)g_readytorun.head; @@ -115,11 +116,11 @@ void up_assert(const ubyte *filename, int lineno) _up_assert(EXIT_FAILURE); } -/************************************************************ +/************************************************************************ * Name: up_assert_code - ************************************************************/ + ************************************************************************/ -void up_assert_code(const ubyte *filename, int lineno, int errorcode) +void up_assert_code(const uint8_t *filename, int lineno, int errorcode) { #if CONFIG_TASK_NAME_SIZE > 0 _TCB *rtcb = (_TCB*)g_readytorun.head; |