This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* Periodically log a message to the JavaScript console. | |
* | |
* This is useful for logging things in loops; it avoids being overwhelmed by | |
* an unstoppable barrage of similar log messages. Example calls: | |
* | |
* # Log "message" to the console no more than every 500ms. | |
* logPeriodically('message', 500); | |
* # Log "message" as an error no more than every 500ms. | |
* logPeriodically('message', 500, console.error); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
BOARD_DIR=../rtl | |
CORES_DIR=../../../cores | |
BOARD_NAME="LatticeECP3" | |
DEVICE_NAME="LFE3-35EA" | |
PKG_NAME="FPBGA484" | |
PER_GRADE=8 | |
SEARCH_PATH="/usr/local/diamond/2.0/ispfpga/ep5c00/data" | |
include common.mak |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - */ | |
/* */ | |
/* Simple node js module to get distance between two coordinates. */ | |
/* */ | |
/* Code transformed from Chris Veness example code - please refer to his website for licensing */ | |
/* questions. */ | |
/* */ | |
/* */ | |
/* Latitude/longitude spherical geodesy formulae & scripts (c) Chris Veness 2002-2011 */ | |
/* - www.movable-type.co.uk/scripts/latlong.html */ |