sketchbook
|
Go to the source code of this file.
Macros | |
#define | reg_spictrl (*(volatile uint32_t*)0x02000000) |
#define | reg_uart_clkdiv (*(volatile uint32_t*)0x02000004) |
#define | reg_uart_data (*(volatile uint32_t*)0x02000008) |
#define | reg_outp (*(volatile uint32_t*)0x03000000) |
#define | reg_inp (*(volatile uint32_t*)0x05000000) |
#define | F_CPU 12000000 |
#define | clk_div_s (F_CPU) |
#define | clk_div_ms (F_CPU/1000) |
#define | clk_div_us (F_CPU/1000000) |
#define | HIGH 0x1 |
#define | LOW 0x0 |
#define | INPUT 0x0 |
#define | OUTPUT 0x1 |
#define | INPUT_PULLUP 0x2 |
#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 | EULER 2.718281828459045235360287471352 |
#define | min(a, b) ((a)<(b)?(a):(b)) |
#define | max(a, b) ((a)>(b)?(a):(b)) |
#define | abs(x) ((x)>0?(x):-(x)) |
#define | constrain(amt, low, high) ((amt)<(low)?(low):((amt)>(high)?(high):(amt))) |
#define | round(x) ((x)>=0?(long)((x)+0.5):(long)((x)-0.5)) |
#define | radians(deg) ((deg)*DEG_TO_RAD) |
#define | degrees(rad) ((rad)*RAD_TO_DEG) |
#define | sq(x) ((x)*(x)) |
#define | clockCyclesPerMicrosecond() ( F_CPU / 1000000L ) |
Typedefs | |
typedef uint8_t | byte |
Functions | |
void | pinMode (uint8_t, uint8_t) |
void | digitalWrite (uint8_t, uint8_t) |
int | digitalRead (uint8_t) |
int | analogRead (uint8_t) |
void | analogWrite (uint8_t, int) |
unsigned long | millis (void) |
unsigned long | micros (void) |
void | delay (unsigned long) |
void | setup (void) |
void | loop (void) |
#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 degrees | ( | rad | ) | ((rad)*RAD_TO_DEG) |
#define EULER 2.718281828459045235360287471352 |
#define F_CPU 12000000 |
#define HALF_PI 1.5707963267948966192313216916398 |
#define HIGH 0x1 |
#define INPUT 0x0 |
#define INPUT_PULLUP 0x2 |
#define LOW 0x0 |
#define OUTPUT 0x1 |
#define PI 3.1415926535897932384626433832795 |
#define RAD_TO_DEG 57.295779513082320876798154814105 |
#define radians | ( | deg | ) | ((deg)*DEG_TO_RAD) |
#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 TWO_PI 6.283185307179586476925286766559 |
typedef uint8_t byte |
int analogRead | ( | uint8_t | ) |
void analogWrite | ( | uint8_t | , |
int | |||
) |
void delay | ( | unsigned | long | ) |
int digitalRead | ( | uint8_t | ) |
void digitalWrite | ( | uint8_t | , |
uint8_t | |||
) |
void loop | ( | void | ) |
OneWirePJON device status update function.
Arduino IDE: put your main code here, to run repeatedly.
unsigned long micros | ( | void | ) |
unsigned long millis | ( | void | ) |
void pinMode | ( | uint8_t | , |
uint8_t | |||
) |
void setup | ( | void | ) |
Arduino IDE: put your setup code here, to run once.