Merge remote-tracking branch 'origin/develop' into xap
This commit is contained in:
commit
780526848b
1 changed files with 8 additions and 1 deletions
|
@ -31,7 +31,14 @@ typedef ioline_t pin_t;
|
|||
|
||||
#define writePinHigh(pin) palSetLine(pin)
|
||||
#define writePinLow(pin) palClearLine(pin)
|
||||
#define writePin(pin, level) ((level) ? (writePinHigh(pin)) : (writePinLow(pin)))
|
||||
#define writePin(pin, level) \
|
||||
do { \
|
||||
if (level) { \
|
||||
writePinHigh(pin); \
|
||||
} else { \
|
||||
writePinLow(pin); \
|
||||
} \
|
||||
} while (0)
|
||||
|
||||
#define readPin(pin) palReadLine(pin)
|
||||
|
||||
|
|
Loading…
Reference in a new issue