From ec5210b5622978ea9d4b46c38fa75fce58e17989 Mon Sep 17 00:00:00 2001 From: harald42 Date: Tue, 28 May 2013 09:57:23 +0200 Subject: [PATCH] periodic prints configurable --- platform/osd-merkur/contiki-main.c | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/platform/osd-merkur/contiki-main.c b/platform/osd-merkur/contiki-main.c index b71067919..d3767f341 100644 --- a/platform/osd-merkur/contiki-main.c +++ b/platform/osd-merkur/contiki-main.c @@ -101,7 +101,7 @@ uint8_t debugflowsize,debugflow[DEBUGFLOWSIZE]; /* Get periodic prints from idle loop, from clock seconds or rtimer interrupts */ /* Use of rtimer will conflict with other rtimer interrupts such as contikimac radio cycling */ /* STAMPS will print ENERGEST outputs if that is enabled. */ -#define PERIODICPRINTS 1 +#define PERIODICPRINTS 0 #if PERIODICPRINTS //#define PINGS 64 #define ROUTES 600 @@ -116,7 +116,7 @@ void rtimercycle(void) {rtimerflag=1;} #endif #endif -uint16_t ledtimer; +//uint16_t ledtimer; /*-------------------------------------------------------------------------*/ /*----------------------Configuration of the .elf file---------------------*/ @@ -147,7 +147,7 @@ FUSES ={.low = 0xC2, .high = 0x99, .extended = 0xfe,}; #include "dev/button-sensor.h" #include "dev/battery-sensor.h" #include "dev/pir-sensor.h" -SENSORS(&button_sensor, &battery_sensor, &pir_sensor); +SENSORS(&button_sensor, &pir_sensor); uint8_t rng_get_uint8(void) { @@ -199,7 +199,7 @@ void initialize(void) #endif /* Second rs232 port for debugging or slip alternative */ - rs232_init(RS232_PORT_1, USART_BAUD_57600,USART_PARITY_NONE | USART_STOP_BITS_1 | USART_DATA_BITS_8); +// rs232_init(RS232_PORT_1, USART_BAUD_57600,USART_PARITY_NONE | USART_STOP_BITS_1 | USART_DATA_BITS_8); /* Redirect stdout */ #if RF230BB_CONF_LEDONPORTE1 || defined(RAVEN_LCD_INTERFACE) rs232_redirect_stdout(RS232_PORT_1); @@ -441,6 +441,7 @@ main(void) process_run(); watchdog_periodic(); +#if 0 /* Turn off LED after a while */ if (ledtimer) { if (--ledtimer==0) { @@ -448,12 +449,13 @@ main(void) PORTE&=~(1<