summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--cpukit/score/cpu/avr/ChangeLog5
-rw-r--r--cpukit/score/cpu/avr/rtems/score/types.h26
2 files changed, 19 insertions, 12 deletions
diff --git a/cpukit/score/cpu/avr/ChangeLog b/cpukit/score/cpu/avr/ChangeLog
index 68f7eafc7b..d6897f38ab 100644
--- a/cpukit/score/cpu/avr/ChangeLog
+++ b/cpukit/score/cpu/avr/ChangeLog
@@ -1,3 +1,8 @@
+2004-11-01 Ralf Corsepius <ralf_corsepius@rtems.org>
+
+ * rtems/score/types.h: s/no_cpu/avr/g.
+ Use POSIX types from rtems/stdint.h.
+
2004-09-29 Joel Sherrill <joel@OARcorp.com>
* rtems/score/cpu.h: i960 obsoleted and all references removed.
diff --git a/cpukit/score/cpu/avr/rtems/score/types.h b/cpukit/score/cpu/avr/rtems/score/types.h
index 774952981f..707c91d044 100644
--- a/cpukit/score/cpu/avr/rtems/score/types.h
+++ b/cpukit/score/cpu/avr/rtems/score/types.h
@@ -1,7 +1,7 @@
/* types.h
*
* This include file contains type definitions pertaining to the Intel
- * no_cpu processor family.
+ * avr processor family.
*
* COPYRIGHT (c) 1989-1999.
* On-Line Applications Research Corporation (OAR).
@@ -18,6 +18,8 @@
#ifndef ASM
+#include <rtems/stdint.h>
+
#ifdef __cplusplus
extern "C" {
#endif
@@ -26,25 +28,25 @@ extern "C" {
* This section defines the basic types for this processor.
*/
-typedef unsigned char unsigned8; /* unsigned 8-bit integer */
-typedef unsigned short unsigned16; /* unsigned 16-bit integer */
-typedef unsigned int unsigned32; /* unsigned 32-bit integer */
-typedef unsigned long long unsigned64; /* unsigned 64-bit integer */
+typedef uint8_t unsigned8; /* unsigned 8-bit integer */
+typedef uint16_t unsigned16; /* unsigned 16-bit integer */
+typedef uint32_t unsigned32; /* unsigned 32-bit integer */
+typedef uint64_t unsigned64; /* unsigned 64-bit integer */
-typedef unsigned16 Priority_Bit_map_control;
+typedef int8_t signed8; /* 8-bit signed integer */
+typedef int16_t signed16; /* 16-bit signed integer */
+typedef int32_t signed32; /* 32-bit signed integer */
+typedef int64_t signed64; /* 64 bit signed integer */
-typedef signed char signed8; /* 8-bit signed integer */
-typedef signed short signed16; /* 16-bit signed integer */
-typedef signed int signed32; /* 32-bit signed integer */
-typedef signed long long signed64; /* 64 bit signed integer */
+typedef unsigned16 Priority_Bit_map_control;
typedef unsigned32 boolean; /* Boolean value */
typedef float single_precision; /* single precision float */
typedef double double_precision; /* double precision float */
-typedef void no_cpu_isr;
-typedef void ( *no_cpu_isr_entry )( void );
+typedef void avr_isr;
+typedef void ( *avr_isr_entry )( void );
#ifdef __cplusplus
}