Skip to content
Snippets Groups Projects
Commit d6857ed1 authored by Cristian Maglie's avatar Cristian Maglie Committed by Cristian Maglie
Browse files

Fixed regression on boolean type definition

parent 2730cc05
No related branches found
No related tags found
No related merge requests found
......@@ -20,11 +20,16 @@
#ifndef Arduino_h
#define Arduino_h
#include <stdbool.h>
#include <stdint.h>
#include <stdlib.h>
#include <string.h>
#include <math.h>
typedef bool boolean;
typedef uint8_t byte;
typedef uint16_t word;
// some libraries and sketches depend on this AVR stuff,
// assuming Arduino.h or WProgram.h automatically includes it...
//
......
......@@ -31,9 +31,6 @@ extern "C"{
//#define OUTPUT (0x1)
//#define INPUT_PULLUP (0x2)
#define true (0x1)
#define false (0x0)
#define PI 3.1415926535897932384626433832795
#define HALF_PI 1.5707963267948966192313216916398
#define TWO_PI 6.283185307179586476925286766559
......@@ -92,13 +89,8 @@ enum BitOrder {
#define bitClear(value, bit) ((value) &= ~(1UL << (bit)))
#define bitWrite(value, bit, bitvalue) (bitvalue ? bitSet(value, bit) : bitClear(value, bit))
typedef unsigned int word;
#define bit(b) (1UL << (b))
typedef bool boolean;
typedef uint8_t byte;
#ifdef __cplusplus
} // extern "C"
#endif // __cplusplus
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment