diff options
author | Alexander Entinger <consulting@lxrobotics.com> | 2019-09-16 10:10:08 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-09-16 10:10:08 +0200 |
commit | ffe7ae05d25f647adb7afa3596d13bf7522158ca (patch) | |
tree | 188c0a837bebc6ba6a5188cb2fa4b6d96d930de4 /cores/arduino/Arduino.h | |
parent | becb995388d7cbdd5f9cfbd41b82c7152ef6513f (diff) | |
parent | 8f752bf8c2785049eca2b546f8105ff856a06f48 (diff) |
Merge pull request #64 from paulrnash/paulrnash-intellisense
Add parameter names to common prototypes
Diffstat (limited to 'cores/arduino/Arduino.h')
-rw-r--r-- | cores/arduino/Arduino.h | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/cores/arduino/Arduino.h b/cores/arduino/Arduino.h index d1a46d0..e1a34ca 100644 --- a/cores/arduino/Arduino.h +++ b/cores/arduino/Arduino.h @@ -130,16 +130,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); @@ -147,8 +147,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); |