support pc development with JS http bridge
This commit is contained in:
18
pc/app.h
Normal file
18
pc/app.h
Normal 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_ */
|
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user