Include stdbool.h. Use bool as base-type for boolean.

This commit is contained in:
Ralf Corsepius
2008-08-21 04:10:35 +00:00
parent aa4a3f1ac4
commit 30e2df697a
14 changed files with 28 additions and 14 deletions

View File

@@ -22,6 +22,7 @@
#ifndef ASM
#include <stdbool.h>
#include <rtems/stdint.h>
#ifdef __cplusplus
@@ -32,7 +33,7 @@ extern "C" {
* This section defines the basic types for this processor.
*/
typedef uint32_t boolean; /* Boolean value */
typedef bool boolean; /* Boolean value */
typedef uint16_t Priority_Bit_map_control;
typedef float single_precision; /* single precision float */

View File

@@ -21,6 +21,7 @@
#ifndef ASM
#include <stdbool.h>
#include <rtems/stdint.h>
#ifdef __cplusplus
@@ -33,7 +34,7 @@ extern "C" {
typedef uint16_t Priority_Bit_map_control;
typedef uint32_t boolean; /* Boolean value */
typedef bool boolean; /* Boolean value */
typedef float single_precision; /* single precision float */
typedef double double_precision; /* double precision float */

View File

@@ -17,6 +17,7 @@
#ifndef ASM
#include <stdbool.h>
#include <rtems/stdint.h>
#ifdef __cplusplus
@@ -31,7 +32,7 @@ extern "C" {
typedef uint16_t Priority_Bit_map_control;
/** This defines the type for a Boolean value, */
typedef uint32_t boolean; /* Boolean value */
typedef bool boolean; /* Boolean value */
/** This defines the type for a single precision float. */
typedef float single_precision;

View File

@@ -21,6 +21,7 @@
#ifndef ASM
#include <stdbool.h>
#include <rtems/stdint.h>
#ifdef __cplusplus
@@ -33,7 +34,7 @@ extern "C" {
typedef uint_least16_t Priority_Bit_map_control;
typedef uint32_t boolean; /* Boolean value */
typedef bool boolean; /* Boolean value */
typedef float single_precision; /* single precision float */
typedef double double_precision; /* double precision float */

View File

@@ -21,6 +21,7 @@
#ifndef ASM
#include <stdbool.h>
#include <rtems/stdint.h>
#ifdef __cplusplus
@@ -33,7 +34,7 @@ extern "C" {
typedef uint16_t Priority_Bit_map_control;
typedef uint32_t boolean; /* Boolean value */
typedef bool boolean; /* Boolean value */
typedef float single_precision; /* single precision float */
typedef double double_precision; /* double precision float */

View File

@@ -21,6 +21,7 @@
#ifndef ASM
#include <stdbool.h>
#include <rtems/stdint.h>
#ifdef __cplusplus
@@ -33,7 +34,7 @@ extern "C" {
typedef uint16_t Priority_Bit_map_control;
typedef uint32_t boolean; /* Boolean value */
typedef bool boolean; /* Boolean value */
typedef float single_precision; /* single precision float */
typedef double double_precision; /* double precision float */

View File

@@ -21,6 +21,7 @@
#ifndef ASM
#include <stdbool.h>
#include <rtems/stdint.h>
#ifdef __cplusplus
@@ -33,7 +34,7 @@ extern "C" {
typedef uint16_t Priority_Bit_map_control;
typedef uint32_t boolean; /* Boolean value */
typedef bool boolean; /* Boolean value */
typedef float single_precision; /* single precision float */
typedef double double_precision; /* double precision float */

View File

@@ -22,6 +22,7 @@
#ifndef ASM
#include <stdbool.h>
#include <rtems/stdint.h>
#ifdef __cplusplus
@@ -34,7 +35,7 @@ extern "C" {
typedef uint16_t Priority_Bit_map_control;
typedef uint32_t boolean; /* Boolean value */
typedef bool boolean; /* Boolean value */
typedef float single_precision; /* single precision float */
typedef double double_precision; /* double precision float */

View File

@@ -21,6 +21,7 @@
#ifndef ASM
#include <stdbool.h>
#include <rtems/stdint.h>
#ifdef __cplusplus
@@ -33,7 +34,7 @@ extern "C" {
typedef uint16_t Priority_Bit_map_control;
typedef uint32_t boolean; /* Boolean value */
typedef bool boolean; /* Boolean value */
typedef float single_precision; /* single precision float */
typedef double double_precision; /* double precision float */

View File

@@ -21,6 +21,7 @@
#ifndef ASM
#include <stdbool.h>
#include <rtems/stdint.h>
#ifdef __cplusplus
@@ -35,7 +36,7 @@ extern "C" {
typedef uint16_t Priority_Bit_map_control;
/** This defines the type for a Boolean value, */
typedef uint32_t boolean; /* Boolean value */
typedef bool boolean; /* Boolean value */
/** This defines the type for a single precision float. */
typedef float single_precision;

View File

@@ -38,6 +38,7 @@
#ifndef ASM
#include <stdbool.h>
#include <rtems/stdint.h>
#ifdef __cplusplus
@@ -50,7 +51,7 @@ extern "C" {
typedef uint32_t Priority_Bit_map_control;
typedef uint32_t boolean; /* Boolean value */
typedef bool boolean; /* Boolean value */
typedef float single_precision; /* single precision float */
typedef double double_precision; /* double precision float */

View File

@@ -31,6 +31,7 @@
#ifndef ASM
#include <stdbool.h>
#include <rtems/stdint.h>
#ifdef __cplusplus
@@ -43,7 +44,7 @@ extern "C" {
typedef uint16_t Priority_Bit_map_control;
typedef uint16_t boolean; /* Boolean value, external */
typedef bool boolean; /* Boolean value, external */
/* data bus has 16 bits */
typedef float single_precision; /* single precision float */

View File

@@ -21,6 +21,7 @@
#ifndef ASM
#include <stdbool.h>
#include <rtems/stdint.h>
#ifdef __cplusplus
@@ -33,7 +34,7 @@ extern "C" {
typedef uint16_t Priority_Bit_map_control;
typedef uint32_t boolean; /* Boolean value */
typedef bool boolean; /* Boolean value */
typedef float single_precision; /* single precision float */
typedef double double_precision; /* double precision float */

View File

@@ -21,6 +21,7 @@
#ifndef ASM
#include <stdbool.h>
#include <rtems/stdint.h>
#ifdef __cplusplus
@@ -42,7 +43,7 @@ extern "C" {
typedef uint16_t Priority_Bit_map_control;
typedef uint32_t boolean; /* Boolean value */
typedef bool boolean; /* Boolean value */
typedef float single_precision; /* single precision float */
typedef double double_precision; /* double precision float */