RTC_GPIO_IN_NEXT definition

grzegorz_kr
Posts: 6
Joined: Sun Apr 11, 2021 6:34 pm

RTC_GPIO_IN_NEXT definition

Postby grzegorz_kr » Sun Apr 11, 2021 6:55 pm

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

WiFive
Posts: 3529
Joined: Tue Dec 01, 2015 7:35 am

Re: RTC_GPIO_IN_NEXT definition

Postby WiFive » Sun Apr 11, 2021 10:59 pm

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.

Who is online

Users browsing this forum: Baidu [Spider] and 75 guests