#include <stdint.h>
#include <stdbool.h>
#include <cstddef>
#include "pins_arduino.h"
Go to the source code of this file.
| #define abs |
( |
|
x | ) |
((x)>0?(x):-(x)) |
| #define clk_div_ms (F_CPU/1000) |
| #define clk_div_s (F_CPU) |
| #define clk_div_us (F_CPU/1000000) |
| #define clockCyclesPerMicrosecond |
( |
| ) |
( F_CPU / 1000000L ) |
| #define constrain |
( |
|
amt, |
|
|
|
low, |
|
|
|
high |
|
) |
| ((amt)<(low)?(low):((amt)>(high)?(high):(amt))) |
| #define DEG_TO_RAD 0.017453292519943295769236907684886 |
| #define EULER 2.718281828459045235360287471352 |
| #define HALF_PI 1.5707963267948966192313216916398 |
| #define max |
( |
|
a, |
|
|
|
b |
|
) |
| ((a)>(b)?(a):(b)) |
| #define min |
( |
|
a, |
|
|
|
b |
|
) |
| ((a)<(b)?(a):(b)) |
| #define PI 3.1415926535897932384626433832795 |
| #define RAD_TO_DEG 57.295779513082320876798154814105 |
| #define reg_inp (*(volatile uint32_t*)0x05000000) |
| #define reg_outp (*(volatile uint32_t*)0x03000000) |
| #define reg_spictrl (*(volatile uint32_t*)0x02000000) |
| #define reg_uart_clkdiv (*(volatile uint32_t*)0x02000004) |
| #define reg_uart_data (*(volatile uint32_t*)0x02000008) |
| #define round |
( |
|
x | ) |
((x)>=0?(long)((x)+0.5):(long)((x)-0.5)) |
| #define sq |
( |
|
x | ) |
((x)*(x)) |
| #define TWO_PI 6.283185307179586476925286766559 |
| int analogRead |
( |
uint8_t |
| ) |
|
| void analogWrite |
( |
uint8_t |
, |
|
|
int |
|
|
) |
| |
| void delay |
( |
unsigned |
long | ) |
|
| int digitalRead |
( |
uint8_t |
| ) |
|
| void digitalWrite |
( |
uint8_t |
, |
|
|
uint8_t |
|
|
) |
| |
OneWirePJON device status update function.
- Returns
- (void)
Arduino IDE: put your main code here, to run repeatedly.
| unsigned long micros |
( |
void |
| ) |
|
| unsigned long millis |
( |
void |
| ) |
|
| void pinMode |
( |
uint8_t |
, |
|
|
uint8_t |
|
|
) |
| |
Arduino IDE: put your setup code here, to run once.