#include <stdbool.h>
#include <stdint.h>
#include <stdlib.h>
#include <string.h>
#include <math.h>
#include "avr/pgmspace.h"
#include "avr/interrupt.h"
#include "avr/io.h"
#include "binary.h"
#include "itoa.h"
#include "sam.h"
#include "wiring_constants.h"
#include "WVariant.h"
#include "delay.h"
#include "variant.h"
#include "wiring.h"
#include "wiring_digital.h"
#include "wiring_analog.h"
#include "wiring_shift.h"
#include "WInterrupts.h"
#include "USB/USBDesc.h"
#include "USB/USBCore.h"
#include "USB/USBAPI.h"
#include "USB/USB_host.h"
Macros | |
#define | clockCyclesPerMicrosecond() ( SystemCoreClock / 1000000L ) |
#define | clockCyclesToMicroseconds(a) ( ((a) * 1000L) / (SystemCoreClock / 1000L) ) |
#define | microsecondsToClockCycles(a) ( (a) * (SystemCoreClock / 1000000L) ) |
#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 | interrupts() __enable_irq() |
#define | noInterrupts() __disable_irq() |
#define | lowByte(w) ((uint8_t) ((w) & 0xff)) |
#define | highByte(w) ((uint8_t) ((w) >> 8)) |
#define | bitRead(value, bit) (((value) >> (bit)) & 0x01) |
#define | bitSet(value, bit) ((value) |= (1UL << (bit))) |
#define | bitClear(value, bit) ((value) &= ~(1UL << (bit))) |
#define | bitWrite(value, bit, bitvalue) (bitvalue ? bitSet(value, bit) : bitClear(value, bit)) |
#define | bit(b) (1UL << (b)) |
#define | ARDUINO_ARCH_SAMD |
Définitions de type | |
typedef bool | boolean |
typedef uint8_t | byte |
typedef uint16_t | word |
Fonctions | |
void | yield (void) |
int | main (void) |
void | init (void) |
void | setup (void) |
void | loop (void) |
void | attendre (unsigned long) |
Variables | |
int | randSeed |
#define abs | ( | x | ) | ((x)>0?(x):-(x)) |
#define ARDUINO_ARCH_SAMD |
#define bit | ( | b | ) | (1UL << (b)) |
#define bitClear | ( | value, | |
bit | |||
) | ((value) &= ~(1UL << (bit))) |
#define bitSet | ( | value, | |
bit | |||
) | ((value) |= (1UL << (bit))) |
#define clockCyclesPerMicrosecond | ( | ) | ( SystemCoreClock / 1000000L ) |
#define clockCyclesToMicroseconds | ( | a | ) | ( ((a) * 1000L) / (SystemCoreClock / 1000L) ) |
#define constrain | ( | amt, | |
low, | |||
high | |||
) | ((amt)<(low)?(low):((amt)>(high)?(high):(amt))) |
#define degrees | ( | rad | ) | ((rad)*RAD_TO_DEG) |
#define highByte | ( | w | ) | ((uint8_t) ((w) >> 8)) |
#define interrupts | ( | ) | __enable_irq() |
#define lowByte | ( | w | ) | ((uint8_t) ((w) & 0xff)) |
#define max | ( | a, | |
b | |||
) | ((a)>(b)?(a):(b)) |
#define microsecondsToClockCycles | ( | a | ) | ( (a) * (SystemCoreClock / 1000000L) ) |
#define min | ( | a, | |
b | |||
) | ((a)<(b)?(a):(b)) |
#define noInterrupts | ( | ) | __disable_irq() |
#define radians | ( | deg | ) | ((deg)*DEG_TO_RAD) |
#define round | ( | x | ) | ((x)>=0?(long)((x)+0.5):(long)((x)-0.5)) |
#define sq | ( | x | ) | ((x)*(x)) |
typedef bool boolean |
typedef uint8_t byte |
typedef uint16_t word |
void attendre | ( | unsigned long | ) |
void init | ( | void | ) |
void loop | ( | void | ) |
int main | ( | void | ) |
void setup | ( | void | ) |
void yield | ( | void | ) |
SysTick hook
This function is called from SysTick handler, before the default handler provided by Arduino.
int randSeed |