X-Git-Url: https://codewiz.org/gitweb?a=blobdiff_plain;f=bertos%2Fnet%2Fnmeap%2Finc%2Fnmeap.h;h=f9bcc0fba8802f64f0b6597dc0818fb11c254ea0;hb=bdf012dea686bbbe63e9785d9aa037536a9ec280;hp=a1035c923d335fb7c6d5cbfbde8c09fbe8ba2dc9;hpb=f5c12c6b439cfed37fe916322c430e47bab0b5af;p=bertos.git diff --git a/bertos/net/nmeap/inc/nmeap.h b/bertos/net/nmeap/inc/nmeap.h index a1035c92..f9bcc0fb 100644 --- a/bertos/net/nmeap/inc/nmeap.h +++ b/bertos/net/nmeap/inc/nmeap.h @@ -26,25 +26,25 @@ EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. extern "C" { #endif +#include "cfg/cfg_nmea.h" + /* ============================================ COMPILE TIME CONFIGURATION CONSTANTS ============================================ */ -#define NDEBUG - /* these constants affect the size of the context object. tweak them as desired but know what you are doing */ /** maximum number of sentence parsers supported */ -#define NMEAP_MAX_SENTENCES 8 +#define NMEAP_MAX_SENTENCES CONFIG_NMEAP_MAX_SENTENCES /** length of sentence name. leave this at 5 unless you really know what you are doing */ #define NMEAP_MAX_SENTENCE_NAME_LENGTH 5 /** max length of a complete sentence. the standard says 82 bytes, but its probably better to go at least 128 since * some units don't adhere to the 82 bytes especially for proprietary sentences */ -#define NMEAP_MAX_SENTENCE_LENGTH 255 +#define NMEAP_MAX_SENTENCE_LENGTH CONFIG_NMEAP_MAX_SENTENCE_LENGTH /** max tokens in one sentence. 24 is enough for any standard sentence */ -#define NMEAP_MAX_TOKENS 24 +#define NMEAP_MAX_TOKENS CONFIG_NMEAP_MAX_TOKENS /* predefined message ID's */