Skip to content

Commit 32424ba

Browse files
author
Nathan Seidle
committed
Add math.h to get pow. Add type for boolean.
1 parent c233e12 commit 32424ba

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

cores/arduino/ard_sup/Arduino.h

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,9 @@ extern "C"
3939
// Include Apollo headers
4040
#include "am_mcu_apollo.h"
4141
#include "am_util.h"
42-
// #include "am_bsp.h"
42+
// #include "am_bsp.h"
43+
44+
#include <math.h> //Gets us pow()
4345

4446
#ifdef ARDUINO_REDEFINE_OVERFLOW
4547
#warning "restoring OVERFLOW from value in ARDUINO_REDEFINE_OVERFLOW"
@@ -70,6 +72,8 @@ extern "C"
7072
#define RAD_TO_DEG 57.295779513082320876798154814105
7173
#define EULER 2.718281828459045235360287471352
7274

75+
typedef bool boolean;
76+
7377
enum BitOrder
7478
{
7579
LSBFIRST = 0,

0 commit comments

Comments
 (0)