Skip to content

Commit 0de8a99

Browse files
committed
update
1 parent a391bc7 commit 0de8a99

File tree

19 files changed

+21
-1295
lines changed

19 files changed

+21
-1295
lines changed

Makefile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,9 @@
66

77
ESPOPTION ?= -p COM7 -b 460800
88

9-
UPLOADADDR = http://atesp8266/fsupload TESP8266
9+
UPLOADADDR = http://stesp8266/fsupload TESP8266
1010

11-
UPLOADOVL = ./ovls/bin/sync.ovl
11+
UPLOADOVL = ./ovls/bin/i219u.ovl
1212

1313
# SPI_SPEED = 40MHz or 80MHz
1414
SPI_SPEED?=80

WEBFiles/protect/i219u.htm

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
</head>
88
<body>
99
~inc:menu.inc~
10-
<! ~sys_debug=0~,~mdbw60=0,2~>
10+
<! ~sys_debug=0~,~mdbw60=5,4~>
1111
<div class="content">
1212
<h2 class="title">UDP INA219 Port</h2>
1313
<table class="form"><form method="post" action="">

WEBFilesRS485/sht7x.ovl

0 Bytes
Binary file not shown.

WEBFilesRS485/udptp.ovl

0 Bytes
Binary file not shown.

WEBFilesRS485/wdrv.ovl

0 Bytes
Binary file not shown.

WEBFilesTCP2UART/ina219.htm

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
~inc:grfx1.inc~
22
<td width="50%">Ivcc: <span id="xdata" style="font-weight:bold">?</span> mA</td>
3-
<! ~sys_debug=0~,~mdbw60=0,2~,~ovl:ina219.ovl~>
3+
<! ~sys_debug=0~,~mdbw60=5,4~,~ovl:ina219.ovl~>
44
<script type="text/javascript">
55
var xmlfile = 'ina219.xml';
66
var xmin = 70;

WEBFilesTCP2UART/protect/debug.htm

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,8 @@
99
<h2 class="title">Debug and Tests</h2>
1010
<p class="center">
1111
Chart <a href="/heap.htm">'heap'</a>, <a href="/adc.htm">ADC</a>, <a href="/vdd.htm">Vdd</a>, <a href="/tst.htm">ST-AP RSSI</a><br><br>
12-
Overlays <a href="/protect/udpwave.htm">UDP Wave Port</a>, <a href="/protect/udptst.htm">UDP Test Port</a>, <a href="/protect/mdb.htm?ovl=sht7x.ovl">SHT71</a><br><br>
12+
Overlays <a href="/protect/udpwave.htm">UDP Wave Port</a>, <a href="/protect/udptst.htm">UDP Test Port</a>, <a href="/protect/i219u.htm">UDP INA219 Port</a>, <a href="/protect/mdb.htm?ovl=sht7x.ovl">SHT71</a><br><br>
13+
<a href="/ina219.htm">INA219</a>, <a href="/i219ws.htm">INA219 WebSock</a><br><br>
1314
Page <a href="/protect/mdb.htm">Modbus Data</a>, <a href="/sample.htm">Vars Sample</a>, <a href="/websock.htm">Websock Sample</a><br><br>
1415
Get <a href="/system.xml">system.xml</a>, <a href="/protect/aps.xml">aps.xml</a>, <a href="/protect/pr_request.xml">pr_request.xml</a>, <a href="/protect/mdb.bin">mdb.bin</a><br><br><br>
1516
<a title='Not work for any mode...' href='/timeout.htm?sys_reset=12345'>SoftWare Reset</a>, <a title='Not work for any mode...' href='/timeout.htm?sys_restart=12345'>System Restart</a><br><br>

WEBFilesTCP2UART/protect/init.ini

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
1-
mdbfini=protect/mdbini.bin
21
sys_ram0x60000f00=0x48
32
sys_ram0x60000f00=0x65
43
sys_ram0x60000f00=0x6c
54
sys_ram0x60000f00=0x6c
65
sys_ram0x60000f00=0x6f
7-
sys_ram0x60000f00=0x21
6+
sys_ram0x60000f00=0x21

info/libs/main/user_interface.c

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -566,6 +566,15 @@ void system_deep_sleep_local_2(void)
566566
IO_RTC_2 = 1<<20; // rtc_enter_sleep() HWREG(PERIPHS_RTC_BASEADDR, 0x08) = 0x100000;
567567
}
568568

569+
Т.е. вместо того, чтобы написать:
570+
void __attribute__ ((noreturn)) system_deep_sleep_local_2(void)
571+
{
572+
....
573+
IO_RTC_2 = 1<<20; // rtc_enter_sleep()
574+
while(1);
575+
}
576+
577+
569578

570579
void system_deep_sleep_instant(void *timer_arg) // В ранних SDK _sys_deep_sleep_timer()
571580
{

ovls/i219u/main/ina219u.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -165,7 +165,7 @@ uint16 ICACHE_FLASH_ATTR IntReadIna219(uint32 num)
165165
//#define TIMER0_USE_NMI_VECTOR
166166
Предел при NMI примерно до 50 кГц из-за прервания обработки WiFi...
167167
------------------------------------------------------------------------------*/
168-
void timer0_isr(void)
168+
void ICACHE_FLASH_ATTR timer0_isr(void)
169169
{
170170
if(out_wave_pbuf != NULL) {
171171
out_wave_pbuf[wdrv_buf_wr_idx] = IntReadIna219(wdrv_buf_wr_idx);
@@ -211,7 +211,7 @@ int ICACHE_FLASH_ATTR OpenINA219(void)
211211
return -2;
212212
}
213213

214-
void wdrv_stop(void)
214+
void ICACHE_FLASH_ATTR wdrv_stop(void)
215215
{
216216
#ifdef USE_TIMER0
217217
timer0_stop();
@@ -458,7 +458,7 @@ void ICACHE_FLASH_ATTR close_wdrv(void)
458458

459459
//=============================================================================
460460
//=============================================================================
461-
int ovl_init(int flg)
461+
int ICACHE_FLASH_ATTR ovl_init(int flg)
462462
{
463463
int i = 0;
464464
switch(flg) {

0 commit comments

Comments
 (0)