bosko lekovic
/
ETHtoCOM_10
nova verzija tcp+udp->serial com
Diff: main.cpp
- Revision:
- 3:1196befeace0
- Parent:
- 2:45b351b4fc2a
- Child:
- 4:7abcf4543282
--- a/main.cpp Sun Apr 05 12:56:41 2020 +0000 +++ b/main.cpp Wed Apr 08 08:41:16 2020 +0000 @@ -5,6 +5,7 @@ #include "TcpServerToFlash.h" #include "dxml.h" #include "doHTML.h" +#include "dataFlash.h" #include "string.h" volatile PFV pfv = NULL; @@ -28,10 +29,19 @@ { printf("\n\r---------- POCETAK ------------- \n\r"); + + init_FlashData( ); + showFlashData( ); + + init_html( ); + putHTMLintoFlash( ); + refreshDataFromFlash( ); + + showFlashData( ); + init_EthToScom( ); inic_TcpServerToFlash( ); - inic_html( ); @@ -42,6 +52,10 @@ if(i++ >10 ) { i=0; GLed = !GLed;} wait(0.01); } + + deinit_FlashData( ); + + }