#include <cpu/power.h>
#include <drv/timer.h>
+#if CONFIG_USE_HP_TIMER
#include <drv/ser.h>
+static Serial out;
+#endif
#include <kern/proc.h>
static PROC_DEFINE_STACK(lp_stack, PROC_STACK_SIZE);
static Process *hp_proc, *lp_proc, *main_proc;
-static Serial out;
-
#if CONFIG_USE_HP_TIMER
static hptime_t start, end;
#endif
timer_init();
proc_init();
- ser_init(&out, CONFIG_CTX_DEBUG_PORT);
- ser_setbaudrate(&out, CONFIG_CTX_DEBUG_BAUDRATE);
+ #if CONFIG_USE_HP_TIMER
+ ser_init(&out, CONFIG_CTX_DEBUG_PORT);
+ ser_setbaudrate(&out, CONFIG_CTX_DEBUG_BAUDRATE);
+ #endif
#if CONFIG_USE_LED
LED_INIT();
* \author Daniele Basiele <asterix@develer.com>
*
* $WIZ$ module_name = "context_switch"
- * $WIZ$ module_depends = "kfile", "kern", "signal", "timer", "ser"
+ * $WIZ$ module_depends = "kfile", "kern", "signal", "timer"
* $WIZ$ module_configuration = "bertos/cfg/cfg_context_switch.h"
* $WIZ$ module_hw = "bertos/hw/hw_led.h"
*/
* Use hp timer for the bechmark.
*
* $WIZ$ type = "boolean"
+ * $WIZ$ module= "boolean"
+ * $WIZ$ conditional_deps = "ser"
*/
#define CONFIG_USE_HP_TIMER 1
* \brief Common menu handling API
*
* $WIZ$ module_name = "menu"
- * $WIZ$ module_configuration = "bertos/cfg/cfg_menu.h"
* $WIZ$ module_depends = "text", "gfx", "timer", "kbd"
*/
* Use hp timer for the bechmark.
*
* $WIZ$ type = "boolean"
+ * $WIZ$ module= "boolean"
+ * $WIZ$ conditional_deps = "ser"
*/
#define CONFIG_USE_HP_TIMER 1
* Use hp timer for the bechmark.
*
* $WIZ$ type = "boolean"
+ * $WIZ$ module= "boolean"
+ * $WIZ$ conditional_deps = "ser"
*/
#define CONFIG_USE_HP_TIMER 1
* Use hp timer for the bechmark.
*
* $WIZ$ type = "boolean"
+ * $WIZ$ module= "boolean"
+ * $WIZ$ conditional_deps = "ser"
*/
#define CONFIG_USE_HP_TIMER 1
* Use hp timer for the bechmark.
*
* $WIZ$ type = "boolean"
+ * $WIZ$ module= "boolean"
+ * $WIZ$ conditional_deps = "ser"
*/
#define CONFIG_USE_HP_TIMER 1
* Use hp timer for the bechmark.
*
* $WIZ$ type = "boolean"
+ * $WIZ$ module= "boolean"
+ * $WIZ$ conditional_deps = "ser"
*/
#define CONFIG_USE_HP_TIMER 1
#define CFG_CONTEXT_SWITCH_H
/**
- * Use hp timer for the bechmark, otherwise it use
- * one led.
+ * Use hp timer for the bechmark.
*
* $WIZ$ type = "boolean"
+ * $WIZ$ module= "boolean"
+ * $WIZ$ conditional_deps = "ser"
*/
#define CONFIG_USE_HP_TIMER 1
+/**
+ * Use board led for benchmark.
+ *
+ * $WIZ$ type = "boolean"
+ */
+#define CONFIG_USE_LED 1
+
+
/**
* Debug console port.
* $WIZ$ type = "int"; min = 0
* Use hp timer for the bechmark.
*
* $WIZ$ type = "boolean"
+ * $WIZ$ module= "boolean"
+ * $WIZ$ conditional_deps = "ser"
*/
#define CONFIG_USE_HP_TIMER 1
* Use hp timer for the bechmark.
*
* $WIZ$ type = "boolean"
+ * $WIZ$ module= "boolean"
+ * $WIZ$ conditional_deps = "ser"
*/
#define CONFIG_USE_HP_TIMER 1
* Use hp timer for the bechmark.
*
* $WIZ$ type = "boolean"
+ * $WIZ$ module= "boolean"
+ * $WIZ$ conditional_deps = "ser"
*/
#define CONFIG_USE_HP_TIMER 1
* Use hp timer for the bechmark.
*
* $WIZ$ type = "boolean"
+ * $WIZ$ module= "boolean"
+ * $WIZ$ conditional_deps = "ser"
*/
#define CONFIG_USE_HP_TIMER 1
* Use hp timer for the bechmark.
*
* $WIZ$ type = "boolean"
+ * $WIZ$ module= "boolean"
+ * $WIZ$ conditional_deps = "ser"
*/
#define CONFIG_USE_HP_TIMER 1