1
0
Fork 0

Update naming convention for GPIO control macros (#23085)

This commit is contained in:
Ryan 2024-02-17 00:18:26 +11:00 committed by GitHub
parent 6890c1aeb8
commit b8646bc40b
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
12 changed files with 100 additions and 83 deletions

View file

@ -24,11 +24,11 @@ typedef uint8_t pin_t;
extern bool pins[];
extern bool pinIsInputHigh[];
#define setPinInputHigh(pin) (mockSetPinInputHigh(pin))
#define readPin(pin) (mockReadPin(pin))
#define gpio_set_pin_input_high(pin) (mock_set_pin_input_high(pin))
#define gpio_read_pin(pin) (mock_read_pin(pin))
uint8_t mockSetPinInputHigh(pin_t pin);
uint8_t mock_set_pin_input_high(pin_t pin);
bool mockReadPin(pin_t pin);
bool mock_read_pin(pin_t pin);
bool setPin(pin_t pin, bool val);