support pc development with JS http bridge

This commit is contained in:
Conor Patrick
2018-07-09 23:50:21 -04:00
parent 4eeb99fb59
commit 689f0bd5f1
5 changed files with 231 additions and 24 deletions

18
pc/app.h Normal file
View File

@@ -0,0 +1,18 @@
/*
* app.h
*
* Created on: Jun 26, 2018
* Author: conor
*/
#ifndef SRC_APP_H_
#define SRC_APP_H_
#define USING_DEV_BOARD
#define BRIDGE_TO_WALLET
void printing_init();
#endif /* SRC_APP_H_ */

View File

@@ -95,12 +95,12 @@ void udp_close(int fd)
uint64_t millis()
uint32_t millis()
{
struct timeval te;
gettimeofday(&te, NULL); // get current time
uint64_t milliseconds = te.tv_sec*1000LL + te.tv_usec/1000; // calculate milliseconds
return milliseconds;
return (uint32_t)milliseconds;
}