From 20ac20f6295b5bd923144ab6844564f13ddc8ca8 Mon Sep 17 00:00:00 2001 From: Cristian Maglie Date: Wed, 7 Jan 2015 14:56:19 +0100 Subject: [PATCH] Arduino custom type boolean is now mapped to bool type Fixes #2151 Fixes #2147 --- hardware/arduino/avr/cores/arduino/Arduino.h | 2 +- hardware/arduino/sam/cores/arduino/wiring_constants.h | 4 +--- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/hardware/arduino/avr/cores/arduino/Arduino.h b/hardware/arduino/avr/cores/arduino/Arduino.h index ac775f13c..16dd759b3 100644 --- a/hardware/arduino/avr/cores/arduino/Arduino.h +++ b/hardware/arduino/avr/cores/arduino/Arduino.h @@ -114,7 +114,7 @@ typedef unsigned int word; #define bit(b) (1UL << (b)) -typedef uint8_t boolean; +typedef bool boolean; typedef uint8_t byte; void init(void); diff --git a/hardware/arduino/sam/cores/arduino/wiring_constants.h b/hardware/arduino/sam/cores/arduino/wiring_constants.h index a3cd0d00d..9c39b74a9 100644 --- a/hardware/arduino/sam/cores/arduino/wiring_constants.h +++ b/hardware/arduino/sam/cores/arduino/wiring_constants.h @@ -92,11 +92,9 @@ typedef unsigned int word; #define bit(b) (1UL << (b)) -// TODO: to be checked -typedef uint8_t boolean ; +typedef bool boolean ; typedef uint8_t byte ; - #ifdef __cplusplus } // extern "C" #endif // __cplusplus