diff options
author | Alexander Entinger <consulting@lxrobotics.com> | 2019-09-16 10:21:51 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-09-16 10:21:51 +0200 |
commit | 366b1b814702ec0da8951f9e13af882352442940 (patch) | |
tree | 597ffcfd6407f4b7c55639ee54f5b517c25c9e79 /cores/arduino/Arduino.h | |
parent | 0c5aa78ff40d208a1341b3dae84166e837901070 (diff) | |
parent | 742abcd9660d4b754fede51f098113fca918cb54 (diff) |
Merge branch 'master' into patch-1
Diffstat (limited to 'cores/arduino/Arduino.h')
-rw-r--r-- | cores/arduino/Arduino.h | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/cores/arduino/Arduino.h b/cores/arduino/Arduino.h index 808ff19..91eeb16 100644 --- a/cores/arduino/Arduino.h +++ b/cores/arduino/Arduino.h @@ -112,7 +112,7 @@ void yield(void); #define bitSet(value, bit) ((value) |= (1UL << (bit))) #define bitClear(value, bit) ((value) &= ~(1UL << (bit))) #define bitToggle(value, bit) ((value) ^= (1UL << (bit))) -#define bitWrite(value, bit, bitvalue) (bitvalue ? bitSet(value, bit) : bitClear(value, bit)) +#define bitWrite(value, bit, bitvalue) ((bitvalue) ? bitSet(value, bit) : bitClear(value, bit)) // avr-libc defines _NOP() since 1.6.2 #ifndef _NOP @@ -131,16 +131,16 @@ void initVariant(void); int atexit(void (*func)()) __attribute__((weak)); -void pinMode(uint8_t, uint8_t); -void digitalWrite(uint8_t, uint8_t); -int digitalRead(uint8_t); -int analogRead(uint8_t); +void pinMode(uint8_t pin, uint8_t mode); +void digitalWrite(uint8_t pin, uint8_t val); +int digitalRead(uint8_t pin); +int analogRead(uint8_t pin); void analogReference(uint8_t mode); -void analogWrite(uint8_t, int); +void analogWrite(uint8_t pin, int val); unsigned long millis(void); unsigned long micros(void); -void delay(unsigned long); +void delay(unsigned long ms); void delayMicroseconds(unsigned int us); unsigned long pulseIn(uint8_t pin, uint8_t state, unsigned long timeout); unsigned long pulseInLong(uint8_t pin, uint8_t state, unsigned long timeout); @@ -148,8 +148,8 @@ unsigned long pulseInLong(uint8_t pin, uint8_t state, unsigned long timeout); void shiftOut(uint8_t dataPin, uint8_t clockPin, uint8_t bitOrder, uint8_t val); uint8_t shiftIn(uint8_t dataPin, uint8_t clockPin, uint8_t bitOrder); -void attachInterrupt(uint8_t, void (*)(void), int mode); -void detachInterrupt(uint8_t); +void attachInterrupt(uint8_t interruptNum, void (*userFunc)(void), int mode); +void detachInterrupt(uint8_t interruptNum); void setup(void); void loop(void); |