Page 1 of 1

RTC_GPIO_IN_NEXT definition

Posted: Sun Apr 11, 2021 6:55 pm
by grzegorz_kr
Hi All,
I'm wondering why the RTC_GPIO_IN_NEXT definition in rtc_io_reg.h is:
#define RTC_GPIO_IN_NEXT 0x0003FFFF

According to the specs, the GPIO17 - GPIO0 match bit31-bit14 in RTC_GPIO_IN_REG. All lower bits (13-0) are reserved.

Therefore shouldn't it be:
#define RTC_GPIO_IN_NEXT 0x00003FFF ?

Regards
Grzegorz

Re: RTC_GPIO_IN_NEXT definition

Posted: Sun Apr 11, 2021 10:59 pm
by WiFive
It shouldn't be 0x00003FFF but there are definitely inconsistencies in the way fields are defined sometimes they are equal to the vector value and sometimes they are equal to the mask value. I think all the macros use the vector, shift, and mask anyway so it doesn't seem to cause problems.