From: bernie Date: Sun, 10 Aug 2008 17:26:28 +0000 (+0000) Subject: Add logging for kernel X-Git-Tag: 2.0.0~329 X-Git-Url: https://codewiz.org/gitweb?a=commitdiff_plain;h=00455e9ad45329213214919462b4bf1e9cde6f11;p=bertos.git Add logging for kernel git-svn-id: https://src.develer.com/svnoss/bertos/trunk@1605 38d2e660-2303-0410-9eaa-f027e97ec537 --- diff --git a/app/demo/cfg/cfg_kern.h b/app/demo/cfg/cfg_kern.h index fd9371ab..bf46fdef 100644 --- a/app/demo/cfg/cfg_kern.h +++ b/app/demo/cfg/cfg_kern.h @@ -28,13 +28,11 @@ * * Copyright 2001,2004 Develer S.r.l. (http://www.develer.com/) * Copyright 1999,2000,2001 Bernie Innocenti - * * --> * * \brief Kernel configuration parameters * * \version $Id$ - * * \author Bernie Innocenti */ @@ -65,6 +63,13 @@ /* EXPERIMENTAL */ #define CONFIG_KERN_PREEMPTIVE (0 && CONFIG_KERN_SCHED && CONFIG_KERN_TIMER) -#define CONFIG_KERN_QUANTUM 50 /**< Time sharing quantum in timer ticks. */ +/// Time sharing quantum in timer ticks. +#define CONFIG_KERN_QUANTUM 50 + +/// Module logging level. +#define KERN_LOG_LEVEL LOG_LVL_INFO + +/// Module logging format. +#define KERN_LOG_FORMAT LOG_FMT_VERBOSE #endif /* CFG_KERN_H */ diff --git a/bertos/cfg/cfg_kern.h b/bertos/cfg/cfg_kern.h index a135843d..955a3537 100644 --- a/bertos/cfg/cfg_kern.h +++ b/bertos/cfg/cfg_kern.h @@ -28,13 +28,11 @@ * * Copyright 2001,2004 Develer S.r.l. (http://www.develer.com/) * Copyright 1999,2000,2001 Bernie Innocenti - * * --> * * \brief Kernel configuration parameters * * \version $Id$ - * * \author Bernie Innocenti */ @@ -65,8 +63,13 @@ /* EXPERIMENTAL */ #define CONFIG_KERN_PREEMPTIVE (0 && CONFIG_KERN_SCHED && CONFIG_KERN_TIMER) -#define CONFIG_KERN_QUANTUM 50 /**< Time sharing quantum in timer ticks. */ +/// Time sharing quantum in timer ticks. +#define CONFIG_KERN_QUANTUM 50 + +/// Module logging level. +#define KERN_LOG_LEVEL LOG_LVL_INFO -#define CONFIG_KERN_LOGLEVEL LOG_LVL_ERR +/// Module logging format. +#define KERN_LOG_FORMAT LOG_FMT_VERBOSE #endif /* CFG_KERN_H */