aboutsummaryrefslogtreecommitdiffstats
path: root/wirish/wirish.h
diff options
context:
space:
mode:
authorMarti Bolivar <mbolivar@mit.edu>2010-09-26 21:47:55 -0400
committerMarti Bolivar <mbolivar@mit.edu>2010-09-26 21:47:55 -0400
commit849bc0f8f6abf42567a152cf6e01bf7349902aac (patch)
tree8d7dd363d7978e320fb71626e9ddc23285c26205 /wirish/wirish.h
parentc13e850abe053edaa1aad6ef7b928c6bf9288cb3 (diff)
downloadlibrambutan-849bc0f8f6abf42567a152cf6e01bf7349902aac.tar.gz
librambutan-849bc0f8f6abf42567a152cf6e01bf7349902aac.zip
wirish reformatted and code-styled
Diffstat (limited to 'wirish/wirish.h')
-rw-r--r--wirish/wirish.h22
1 files changed, 11 insertions, 11 deletions
diff --git a/wirish/wirish.h b/wirish/wirish.h
index 7ede77c..c1c46cb 100644
--- a/wirish/wirish.h
+++ b/wirish/wirish.h
@@ -1,4 +1,4 @@
-/* *****************************************************************************
+/******************************************************************************
* The MIT License
*
* Copyright (c) 2010 Perry Hung.
@@ -20,14 +20,14 @@
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
* THE SOFTWARE.
- * ****************************************************************************/
+ *****************************************************************************/
+
/**
* @brief Main include file for the Wirish core.
*
* Includes various Arduino wiring macros and bit defines
*/
-
#ifndef _WIRISH_H_
#define _WIRISH_H_
@@ -62,14 +62,14 @@ extern "C"{
#define LSBFIRST 0
#define MSBFIRST 1
-#define lowByte(w) ((w) & 0xff)
-#define highByte(w) ((w) >> 8)
-#define bitRead(value, bit) (((value) >> (bit)) & 0x01)
-#define bitSet(value, bit) ((value) |= (1UL << (bit)))
-#define bitClear(value, bit) ((value) &= ~(1UL << (bit)))
-#define bitWrite(value, bit, bitvalue) (bitvalue ? bitSet(value, bit) : \
- bitClear(value, bit))
-#define bit(b) (1UL << (b))
+#define lowByte(w) ((w) & 0xff)
+#define highByte(w) ((w) >> 8)
+#define bitRead(value, bit) (((value) >> (bit)) & 0x01)
+#define bitSet(value, bit) ((value) |= (1UL << (bit)))
+#define bitClear(value, bit) ((value) &= ~(1UL << (bit)))
+#define bitWrite(value, bit, bitvalue) (bitvalue ? bitSet(value, bit) : \
+ bitClear(value, bit))
+#define bit(b) (1UL << (b))
typedef uint8 boolean;
typedef uint8 byte;