Skip to content

Commit

Permalink
rom/gpio.h: Use new GPIO_PIN0_REG register name
Browse files Browse the repository at this point in the history
Closes github #12
  • Loading branch information
projectgus committed Sep 15, 2016
1 parent 2efaf42 commit 6cffb5d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion components/esp32/include/rom/gpio.h
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ extern "C" {
#define GPIO_PIN_COUNT 40
#define GPIO_ID_PIN0 0
#define GPIO_ID_PIN(n) (GPIO_ID_PIN0+(n))
#define GPIO_PIN_ADDR(i) (GPIO_PIN0 + i*4)
#define GPIO_PIN_ADDR(i) (GPIO_PIN0_REG + i*4)

#define GPIO_ID_IS_PIN_REGISTER(reg_id) \
((reg_id >= GPIO_ID_PIN0) && (reg_id <= GPIO_ID_PIN(GPIO_PIN_COUNT-1)))
Expand Down

0 comments on commit 6cffb5d

Please sign in to comment.