The field version of the solarnano grid on the ionQubes
Fork of SolarNanoGridv3 by
defs.h@36:a5620262f296, 2016-09-06 (annotated)
- Committer:
- defrost
- Date:
- Tue Sep 06 06:08:56 2016 +0000
- Revision:
- 36:a5620262f296
- Parent:
- 28:e85a86fc8b59
Turned off the charge rate update from hub
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
defrost | 5:57b06b4b47c6 | 1 | /** |
defrost | 5:57b06b4b47c6 | 2 | *@section DESCRIPTION |
defrost | 5:57b06b4b47c6 | 3 | * mbed SolarNanogrid Library - definitions for messages |
defrost | 5:57b06b4b47c6 | 4 | *@section LICENSE |
defrost | 5:57b06b4b47c6 | 5 | * Copyright (c) 2016, Malcolm McCulloch |
defrost | 5:57b06b4b47c6 | 6 | * |
defrost | 5:57b06b4b47c6 | 7 | * Permission is hereby granted, free of charge, to any person obtaining a copy |
defrost | 5:57b06b4b47c6 | 8 | * of this software and associated documentation files (the "Software"), to deal |
defrost | 5:57b06b4b47c6 | 9 | * in the Software without restriction, including without limitation the rights |
defrost | 5:57b06b4b47c6 | 10 | * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell |
defrost | 5:57b06b4b47c6 | 11 | * copies of the Software, and to permit persons to whom the Software is |
defrost | 5:57b06b4b47c6 | 12 | * furnished to do so, subject to the following conditions: |
defrost | 5:57b06b4b47c6 | 13 | * |
defrost | 5:57b06b4b47c6 | 14 | * The above copyright notice and this permission notice shall be included in |
defrost | 5:57b06b4b47c6 | 15 | * all copies or substantial portions of the Software. |
defrost | 5:57b06b4b47c6 | 16 | * |
defrost | 5:57b06b4b47c6 | 17 | * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR |
defrost | 5:57b06b4b47c6 | 18 | * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, |
defrost | 5:57b06b4b47c6 | 19 | * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE |
defrost | 5:57b06b4b47c6 | 20 | * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER |
defrost | 5:57b06b4b47c6 | 21 | * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, |
defrost | 5:57b06b4b47c6 | 22 | * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN |
defrost | 5:57b06b4b47c6 | 23 | * THE SOFTWARE. |
defrost | 5:57b06b4b47c6 | 24 | * @file "defs.h" |
defrost | 5:57b06b4b47c6 | 25 | */ |
defrost | 28:e85a86fc8b59 | 26 | #define SDBUFFERSIZE 65536 |
defrost | 5:57b06b4b47c6 | 27 | // |
defrost | 5:57b06b4b47c6 | 28 | // Defines which messages to print |
defrost | 5:57b06b4b47c6 | 29 | // |
defrost | 22:93fde34d9a94 | 30 | #define DEBUG |
defrost | 5:57b06b4b47c6 | 31 | #define INFOMESSAGES |
defrost | 5:57b06b4b47c6 | 32 | #define WARNMESSAGES |
defrost | 5:57b06b4b47c6 | 33 | #define ERRMESSAGES |
defrost | 5:57b06b4b47c6 | 34 | |
defrost | 5:57b06b4b47c6 | 35 | #ifdef DEBUG |
epgmdm | 11:87ab310924f0 | 36 | #define DBG(x, ...) printf("["FUNCNAME" : DBG] "x" <line %d>\r\n", ##__VA_ARGS__,__LINE__); |
defrost | 5:57b06b4b47c6 | 37 | #else |
defrost | 5:57b06b4b47c6 | 38 | #define DBG(x, ...) |
defrost | 5:57b06b4b47c6 | 39 | #endif |
defrost | 5:57b06b4b47c6 | 40 | |
defrost | 5:57b06b4b47c6 | 41 | #ifdef ERRMESSAGES |
defrost | 5:57b06b4b47c6 | 42 | #define ERR(x, ...) printf("["FUNCNAME" : ERR] "x"\r\n", ##__VA_ARGS__); |
defrost | 5:57b06b4b47c6 | 43 | #else |
defrost | 5:57b06b4b47c6 | 44 | #define ERR(x, ...) |
defrost | 5:57b06b4b47c6 | 45 | #endif |
defrost | 5:57b06b4b47c6 | 46 | |
defrost | 5:57b06b4b47c6 | 47 | #ifdef WARNMESSAGES |
defrost | 5:57b06b4b47c6 | 48 | #define WARN(x, ...) printf("["FUNCNAME" : WARN] "x"\r\n", ##__VA_ARGS__); |
defrost | 5:57b06b4b47c6 | 49 | #else |
defrost | 5:57b06b4b47c6 | 50 | #define WARN(x, ...) |
defrost | 5:57b06b4b47c6 | 51 | #endif |
defrost | 5:57b06b4b47c6 | 52 | |
defrost | 5:57b06b4b47c6 | 53 | #ifdef INFOMESSAGES |
defrost | 5:57b06b4b47c6 | 54 | #define INFO(x, ...) printf("["FUNCNAME" : INFO] "x"\r\n", ##__VA_ARGS__); |
defrost | 5:57b06b4b47c6 | 55 | #else |
defrost | 5:57b06b4b47c6 | 56 | #define INFO(x, ...) |
defrost | 5:57b06b4b47c6 | 57 | #endif |