X-Git-Url: https://codewiz.org/gitweb?a=blobdiff_plain;f=bertos%2Fcfg%2Fcfg_nmea.h;h=9249a9afbf6f1b7e9f71bc81219868a55b0e9b40;hb=56f2c002c50338f23f1b969ba51a43b0eb24f3da;hp=c74aced3980d701b25396ccaf190a7c1fa138514;hpb=72237b5b46fc0f6852bc89e04772649105d45637;p=bertos.git diff --git a/bertos/cfg/cfg_nmea.h b/bertos/cfg/cfg_nmea.h index c74aced3..9249a9af 100644 --- a/bertos/cfg/cfg_nmea.h +++ b/bertos/cfg/cfg_nmea.h @@ -44,7 +44,7 @@ * $WIZ$ type = "enum" * $WIZ$ value_list = "log_level" */ -#define NMEA_LOG_LEVEL LOG_LVL_INFO +#define NMEA_LOG_LEVEL LOG_LVL_ERR /** * Module logging format. @@ -52,6 +52,34 @@ * $WIZ$ type = "enum" * $WIZ$ value_list = "log_format" */ -#define NMEA_LOG_FORMAT LOG_FMT_VERBOSE +#define NMEA_LOG_FORMAT LOG_FMT_TERSE + + +/** + * Maximum number of sentence parsers supported. + * + * $WIZ$ type = "int" + * $WIZ$ min = 1 + */ +#define CONFIG_NMEAP_MAX_SENTENCES 8 + +/** + * 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. + * + * $WIZ$ type = "int" + * $WIZ$ min = 1 + */ +#define CONFIG_NMEAP_MAX_SENTENCE_LENGTH 255 + +/** + * Max tokens in one sentence. 24 is enough for any standard sentence. + * + * $WIZ$ type = "int" + * $WIZ$ min = 1 + */ +#define CONFIG_NMEAP_MAX_TOKENS 24 #endif /* CFG_NMEA_H */ +