Skip to content

Commit ae055f9

Browse files
John DoeJohn Doe
John Doe
authored and
John Doe
committed
add RTC registers
1 parent 492629a commit ae055f9

File tree

2 files changed

+20
-9
lines changed

2 files changed

+20
-9
lines changed

docs/rgisters_dump.txt

+9-9
Original file line numberDiff line numberDiff line change
@@ -547,21 +547,21 @@
547547
| 10987654321098765432109876543210 | | | |
548548
===========|==================================|============|============|======|
549549
0x60000700 | 00000000000110011100000001101010 | 0x0019C06A | 1687658 | Àj |
550-
0x60000704 | 00000000001111100011111111111111 | 0x003E3FFF | 4079615 | >?ÿ |
550+
0x60000704 | 00000000001111100011111111111111 | 0x003E3FFF | 4079615 | >?ÿ | RTCSV
551551
0x60000708 | 00000000001000000000000000000000 | 0x00200000 | 2097152 | |
552552
0x6000070C | 00000000000000011110000000101000 | 0x0001E028 | 122920 | à( |
553553
0x60000710 | 11111110000000000000000000000000 | 0xFE000000 | 4261412864 | þ |
554554
0x60000714 | 00000000000000000000000000000010 | 0x00000002 | 2 | |
555555
0x60000718 | 00000000000000000000100000001000 | 0x00000808 | 2056 | |
556-
0x6000071C | 00000000010100001010011111000011 | 0x0050A7C3 | 5285827 | P§Ã |
557-
0x60000720 | 00000000000000000000000000000000 | 0x00000000 | 0 | |
558-
0x60000724 | 00000000000000000000000000000000 | 0x00000000 | 0 | |
559-
0x60000728 | 00000000000000000000000000000101 | 0x00000005 | 5 | |
556+
0x6000071C | 00000000010100001010011111000011 | 0x0050A7C3 | 5285827 | P§Ã | RTCCV
557+
0x60000720 | 00000000000000000000000000000000 | 0x00000000 | 0 | | RTCIS
558+
0x60000724 | 00000000000000000000000000000000 | 0x00000000 | 0 | | RTCIC
559+
0x60000728 | 00000000000000000000000000000101 | 0x00000005 | 5 | | RTCIE
560560
0x6000072C | 00000000000000000000000000000000 | 0x00000000 | 0 | |
561-
0x60000730 | 00000000000000000000000000000000 | 0x00000000 | 0 | |
562-
0x60000734 | 00000000000000000000000000000000 | 0x00000000 | 0 | |
563-
0x60000738 | 00000000000000000000000000000000 | 0x00000000 | 0 | |
564-
0x6000073C | 00000000000000000000000000000000 | 0x00000000 | 0 | |
561+
0x60000730 | 00000000000000000000000000000000 | 0x00000000 | 0 | | RTCS0
562+
0x60000734 | 00000000000000000000000000000000 | 0x00000000 | 0 | | RTCS1
563+
0x60000738 | 00000000000000000000000000000000 | 0x00000000 | 0 | | RTCS2
564+
0x6000073C | 00000000000000000000000000000000 | 0x00000000 | 0 | | RTCS3
565565
0x60000740 | 00000000000000000000000000000000 | 0x00000000 | 0 | |
566566
0x60000744 | 00000000000000000000000000000000 | 0x00000000 | 0 | |
567567
0x60000748 | 00100000001100000010000000100000 | 0x20302020 | 540024864 | 0 |

hardware/esp8266com/esp8266/cores/esp8266/esp8266_peri.h

+11
Original file line numberDiff line numberDiff line change
@@ -148,6 +148,17 @@ extern uint8_t esp8266_gpioToFn[16];
148148
#define TCPD 2 //Prescale Devider (2bit) 0:1(12.5ns/tick), 1:16(0.2us/tick), 2/3:256(3.2us/tick)
149149
#define TCIT 0 //Interrupt Type 0:edge, 1:level
150150

151+
//RTC Registers
152+
#define RTCMEM(i) ESP8266_REG(0x1100 + (((i) & 0xFF) * 4)) //RTC RAM 768 bytes, 192 registers
153+
#define RTCSV ESP8266_REG(0x704) //RTC SLEEP COUNTER Target Value
154+
#define RTCCV ESP8266_REG(0x71C) //RTC SLEEP COUNTER Value
155+
#define RTCIS ESP8266_REG(0x720) //RTC INT Status
156+
#define RTCIC ESP8266_REG(0x724) //RTC INT Clear
157+
#define RTCIE ESP8266_REG(0x728) //RTC INT Enable
158+
#define RTCS0 ESP8266_REG(0x730) //RTC SCRATCH 0
159+
#define RTCS1 ESP8266_REG(0x734) //RTC SCRATCH 1
160+
#define RTCS2 ESP8266_REG(0x738) //RTC SCRATCH 2
161+
#define RTCS3 ESP8266_REG(0x73C) //RTC SCRATCH 3
151162

152163
//UART SWAP Register
153164
#define USWAP ESP8266_DREG(0x28)

0 commit comments

Comments
 (0)