X-Git-Url: https://codewiz.org/gitweb?a=blobdiff_plain;f=boards%2Fek-lpc-p2378%2Fbenchmark%2Fcontext_switch%2Fcfg%2Fcfg_nmea.h;fp=boards%2Fek-lpc-p2378%2Fbenchmark%2Fcontext_switch%2Fcfg%2Fcfg_nmea.h;h=9249a9afbf6f1b7e9f71bc81219868a55b0e9b40;hb=1b803b1b77ec99683f949e4e1e82b2bee936770f;hp=0000000000000000000000000000000000000000;hpb=f1597b21dbfbfceb5224956a041d84dc0aaeefb0;p=bertos.git diff --git a/boards/ek-lpc-p2378/benchmark/context_switch/cfg/cfg_nmea.h b/boards/ek-lpc-p2378/benchmark/context_switch/cfg/cfg_nmea.h new file mode 100644 index 00000000..9249a9af --- /dev/null +++ b/boards/ek-lpc-p2378/benchmark/context_switch/cfg/cfg_nmea.h @@ -0,0 +1,85 @@ +/** + * \file + * + * + * \brief Configuration file for NMEA module. + * + * \author Daniele Basile + */ + +#ifndef CFG_NMEA_H +#define CFG_NMEA_H + +/** + * Module logging level. + * + * $WIZ$ type = "enum" + * $WIZ$ value_list = "log_level" + */ +#define NMEA_LOG_LEVEL LOG_LVL_ERR + +/** + * Module logging format. + * + * $WIZ$ type = "enum" + * $WIZ$ value_list = "log_format" + */ +#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 */ +