Skip to content

Commit

Permalink
Mark IO_REG_BASE variables as unused on the ESP8266
Browse files Browse the repository at this point in the history
  • Loading branch information
nomis authored and Tihomir Heidelberg committed Dec 19, 2022
1 parent 4848bb9 commit 67e6705
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion util/OneWire_direct_gpio.h
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@
#define PIN_TO_BASEREG(pin) ((volatile uint32_t*) GPO)
#define PIN_TO_BITMASK(pin) (1 << pin)
#define IO_REG_TYPE uint32_t
#define IO_REG_BASE_ATTR
#define IO_REG_BASE_ATTR __attribute__((unused))
#define IO_REG_MASK_ATTR
#define DIRECT_READ(base, mask) ((GPI & (mask)) ? 1 : 0) //GPIO_IN_ADDRESS
#define DIRECT_MODE_INPUT(base, mask) (GPE &= ~(mask)) //GPIO_ENABLE_W1TC_ADDRESS
Expand Down

0 comments on commit 67e6705

Please sign in to comment.