summaryrefslogtreecommitdiff
path: root/nuttx/arch/sh/include
diff options
context:
space:
mode:
authorpatacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3>2009-12-16 16:05:08 +0000
committerpatacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3>2009-12-16 16:05:08 +0000
commitf8a2fb3042d58963a00fe808d18f84eec6a0be71 (patch)
tree9f122b32d69abfaf364eab636ef8cc5bd7b730a2 /nuttx/arch/sh/include
parentf66691d238faf4858c8c9f5c5a53f118a1e1ab8e (diff)
downloadpx4-nuttx-f8a2fb3042d58963a00fe808d18f84eec6a0be71.tar.gz
px4-nuttx-f8a2fb3042d58963a00fe808d18f84eec6a0be71.tar.bz2
px4-nuttx-f8a2fb3042d58963a00fe808d18f84eec6a0be71.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@2357 42af7a65-404d-4744-a932-0658087f49c3
Diffstat (limited to 'nuttx/arch/sh/include')
-rw-r--r--nuttx/arch/sh/include/m16c/irq.h8
-rw-r--r--nuttx/arch/sh/include/sh1/irq.h16
2 files changed, 12 insertions, 12 deletions
diff --git a/nuttx/arch/sh/include/m16c/irq.h b/nuttx/arch/sh/include/m16c/irq.h
index dc7a43693..ad7e43ad9 100644
--- a/nuttx/arch/sh/include/m16c/irq.h
+++ b/nuttx/arch/sh/include/m16c/irq.h
@@ -45,7 +45,7 @@
************************************************************************************/
#include <nuttx/config.h>
-#include <sys/types.h>
+#include <stdint.h>
/************************************************************************************
* Definitions
@@ -249,13 +249,13 @@ struct xcptcontext
/* These are saved copies of LR and SR used during signal processing. */
- ubyte saved_pc[2];
- ubyte saved_flg;
+ uint8_t saved_pc[2];
+ uint8_t saved_flg;
#endif
/* Register save area */
- ubyte regs[XCPTCONTEXT_SIZE];
+ uint8_t regs[XCPTCONTEXT_SIZE];
};
#endif
diff --git a/nuttx/arch/sh/include/sh1/irq.h b/nuttx/arch/sh/include/sh1/irq.h
index 26155864a..5e21ecc6b 100644
--- a/nuttx/arch/sh/include/sh1/irq.h
+++ b/nuttx/arch/sh/include/sh1/irq.h
@@ -1,7 +1,7 @@
/************************************************************************************
* arch/sh/include/sh1/irq.h
*
- * Copyright (C) 2008 Gregory Nutt. All rights reserved.
+ * Copyright (C) 2008-2009 Gregory Nutt. All rights reserved.
* Author: Gregory Nutt <spudmonkey@racsa.co.cr>
*
* Redistribution and use in source and binary forms, with or without
@@ -45,7 +45,7 @@
************************************************************************************/
#include <nuttx/config.h>
-#include <sys/types.h>
+#include <stdint.h>
/************************************************************************************
* Definitions
@@ -264,7 +264,7 @@
* of the corresponding vector in the vector table.
*
* These offsets are specified as a vector number (suitably for indexing an array
- * of uint32) but would have to by multiplied by 4 to get an addressable, byte
+ * of uint32_t) but would have to by multiplied by 4 to get an addressable, byte
* offset.
*/
@@ -468,13 +468,13 @@ struct xcptcontext
/* These are saved copies of LR and SR used during signal processing. */
- uint32 saved_pc;
- uint32 saved_sr;
+ uint32_t saved_pc;
+ uint32_t saved_sr;
#endif
/* Register save area */
- uint32 regs[XCPTCONTEXT_REGS];
+ uint32_t regs[XCPTCONTEXT_REGS];
};
#endif
@@ -526,14 +526,14 @@ static inline irqstate_t irqsave(void)
static inline void irqdisable(void)
{
- uint32 flags = __getsr();
+ uint32_t flags = __getsr();
__setsr(flags | 0x000000f0);
}
/* Enable IRQs */
static inline void irqenable(void)
{
- uint32 flags = __getsr();
+ uint32_t flags = __getsr();
__setsr(flags & ~0x000000f0);
}