Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
A
Arduino Core for SAMD21 CPU
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
josc941e
Arduino Core for SAMD21 CPU
Commits
d6857ed1
Commit
d6857ed1
authored
10 years ago
by
Cristian Maglie
Committed by
Cristian Maglie
10 years ago
Browse files
Options
Downloads
Patches
Plain Diff
Fixed regression on boolean type definition
parent
2730cc05
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
cores/arduino/Arduino.h
+5
-0
5 additions, 0 deletions
cores/arduino/Arduino.h
cores/arduino/wiring_constants.h
+0
-8
0 additions, 8 deletions
cores/arduino/wiring_constants.h
with
5 additions
and
8 deletions
cores/arduino/Arduino.h
+
5
−
0
View file @
d6857ed1
...
...
@@ -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...
//
...
...
This diff is collapsed.
Click to expand it.
cores/arduino/wiring_constants.h
+
0
−
8
View file @
d6857ed1
...
...
@@ -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
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment