From e42b8d7ef811df7f552582c57cda66a275670fe4 Mon Sep 17 00:00:00 2001 From: "David A. Mellis" Date: Sun, 26 Oct 2008 12:31:45 +0000 Subject: Moving makeWord() function defintion into WMath.cpp (out of WProgram.h). --- cores/arduino/WMath.cpp | 3 +++ 1 file changed, 3 insertions(+) (limited to 'cores/arduino/WMath.cpp') diff --git a/cores/arduino/WMath.cpp b/cores/arduino/WMath.cpp index 294d0dd..2120c4c 100644 --- a/cores/arduino/WMath.cpp +++ b/cores/arduino/WMath.cpp @@ -55,3 +55,6 @@ long map(long x, long in_min, long in_max, long out_min, long out_max) { return (x - in_min) * (out_max - out_min) / (in_max - in_min) + out_min; } + +unsigned int makeWord(unsigned int w) { return w; } +unsigned int makeWord(unsigned char h, unsigned char l) { return (h << 8) | l; } \ No newline at end of file -- cgit v1.2.3-18-g5258