diff options
author | David A. Mellis <d.mellis@arduino.cc> | 2009-05-12 10:55:26 +0000 |
---|---|---|
committer | David A. Mellis <d.mellis@arduino.cc> | 2009-05-12 10:55:26 +0000 |
commit | 888f15f2a62d2a55ee53eed77fbf5984f6cfffc4 (patch) | |
tree | b7b27e3f60b4d6a384bbdc61386cd2cf2614d4e8 /cores/arduino/wiring.h | |
parent | 33fd8b8631bd8d5cd609935a2dd2fbb31688f2c1 (diff) |
Optimizing the timer0 overflow handler (for millis()), based on work by WestFW and help from mikalhart. Increasing precision of math constants.
Diffstat (limited to 'cores/arduino/wiring.h')
-rwxr-xr-x | cores/arduino/wiring.h | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/cores/arduino/wiring.h b/cores/arduino/wiring.h index 9600a0f..2f84f78 100755 --- a/cores/arduino/wiring.h +++ b/cores/arduino/wiring.h @@ -41,11 +41,11 @@ extern "C"{ #define true 0x1 #define false 0x0 -#define PI 3.14159265 -#define HALF_PI 1.57079 -#define TWO_PI 6.283185 -#define DEG_TO_RAD 0.01745329 -#define RAD_TO_DEG 57.2957786 +#define PI 3.1415926535897932384626433832795 +#define HALF_PI 1.5707963267948966192313216916398 +#define TWO_PI 6.283185307179586476925286766559 +#define DEG_TO_RAD 0.017453292519943295769236907684886 +#define RAD_TO_DEG 57.295779513082320876798154814105 #define SERIAL 0x0 #define DISPLAY 0x1 |