removed refences to printf2log.h

This commit is contained in:
fros4943 2008-10-03 09:39:38 +00:00
parent 2fb6410e4d
commit 08502eb344
9 changed files with 15 additions and 24 deletions

View file

@ -28,14 +28,13 @@
* *
* This file is part of the Contiki operating system. * This file is part of the Contiki operating system.
* *
* $Id: hello-world.c,v 1.1 2008/04/22 13:07:49 fros4943 Exp $ * $Id: hello-world.c,v 1.2 2008/10/03 09:39:38 fros4943 Exp $
*/ */
#include "contiki.h" #include "contiki.h"
#include "printf2log.h" #include <stdio.h>
#include <stdio.h> /* For printf() */
/*---------------------------------------------------------------------------*/ /*---------------------------------------------------------------------------*/
PROCESS(hello_world_process, "Hello world process"); PROCESS(hello_world_process, "Hello world process");
AUTOSTART_PROCESSES(&hello_world_process); AUTOSTART_PROCESSES(&hello_world_process);

View file

@ -26,14 +26,13 @@
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
* SUCH DAMAGE. * SUCH DAMAGE.
* *
* $Id: testbutton.c,v 1.1 2007/11/25 22:46:14 fros4943 Exp $ * $Id: testbutton.c,v 1.2 2008/10/03 09:39:38 fros4943 Exp $
*/ */
#include "contiki.h" #include "contiki.h"
#include "dev/button-sensor.h" #include "dev/button-sensor.h"
#include <stdio.h> #include <stdio.h>
#include "printf2log.h" /* COOJA specific: Transforms printf() to log_message() */
PROCESS(test_button_process, "Test button process"); PROCESS(test_button_process, "Test button process");
AUTOSTART_PROCESSES(&test_button_process); AUTOSTART_PROCESSES(&test_button_process);

View file

@ -26,7 +26,7 @@
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
* SUCH DAMAGE. * SUCH DAMAGE.
* *
* $Id: testcfs.c,v 1.1 2007/11/25 22:46:14 fros4943 Exp $ * $Id: testcfs.c,v 1.2 2008/10/03 09:39:38 fros4943 Exp $
*/ */
#include "contiki.h" #include "contiki.h"
@ -35,7 +35,6 @@
#include "cfs/cfs.h" #include "cfs/cfs.h"
#include <stdio.h> #include <stdio.h>
#include "printf2log.h" /* COOJA specific: Transforms printf() to log_message() */
PROCESS(test_cfs_process, "Test CFS process"); PROCESS(test_cfs_process, "Test CFS process");
AUTOSTART_PROCESSES(&test_cfs_process); AUTOSTART_PROCESSES(&test_cfs_process);
@ -46,7 +45,7 @@ PROCESS_THREAD(test_cfs_process, ev, data)
static int fd; static int fd;
static u16_t counter; static u16_t counter;
static char buf[30]; static char buf[30];
PROCESS_BEGIN(); PROCESS_BEGIN();
printf("Starting CFS test process\n"); printf("Starting CFS test process\n");
@ -63,7 +62,7 @@ PROCESS_THREAD(test_cfs_process, ev, data)
cfs_close(fd); cfs_close(fd);
printf("Wrote to filesystem: '%s'\n", buf); printf("Wrote to filesystem: '%s'\n", buf);
counter++; counter++;
etimer_set(&et, CLOCK_SECOND); etimer_set(&et, CLOCK_SECOND);
PROCESS_WAIT_EVENT_UNTIL(etimer_expired(&et)); PROCESS_WAIT_EVENT_UNTIL(etimer_expired(&et));

View file

@ -26,14 +26,13 @@
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
* SUCH DAMAGE. * SUCH DAMAGE.
* *
* $Id: testctimer.c,v 1.1 2007/11/25 22:46:14 fros4943 Exp $ * $Id: testctimer.c,v 1.2 2008/10/03 09:39:38 fros4943 Exp $
*/ */
#include "contiki.h" #include "contiki.h"
#include "net/rime/ctimer.h" #include "net/rime/ctimer.h"
#include <stdio.h> #include <stdio.h>
#include "printf2log.h" /* COOJA specific: Transforms printf() to log_message() */
PROCESS(test_ctimer_process, "Callback timer test process"); PROCESS(test_ctimer_process, "Callback timer test process");
AUTOSTART_PROCESSES(&test_ctimer_process); AUTOSTART_PROCESSES(&test_ctimer_process);

View file

@ -26,14 +26,13 @@
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
* SUCH DAMAGE. * SUCH DAMAGE.
* *
* $Id: testetimer.c,v 1.1 2007/11/25 22:46:14 fros4943 Exp $ * $Id: testetimer.c,v 1.2 2008/10/03 09:39:38 fros4943 Exp $
*/ */
#include "contiki.h" #include "contiki.h"
#include "sys/etimer.h" #include "sys/etimer.h"
#include <stdio.h> #include <stdio.h>
#include "printf2log.h" /* COOJA specific: Transforms printf() to log_message() */
PROCESS(test_etimer_process, "Event timer test process"); PROCESS(test_etimer_process, "Event timer test process");
AUTOSTART_PROCESSES(&test_etimer_process); AUTOSTART_PROCESSES(&test_etimer_process);

View file

@ -26,7 +26,7 @@
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
* SUCH DAMAGE. * SUCH DAMAGE.
* *
* $Id: testsensors.c,v 1.1 2007/11/25 22:46:14 fros4943 Exp $ * $Id: testsensors.c,v 1.2 2008/10/03 09:39:38 fros4943 Exp $
*/ */
#include "contiki.h" #include "contiki.h"
@ -36,7 +36,6 @@
#include "dev/radio-sensor.h" #include "dev/radio-sensor.h"
#include <stdio.h> #include <stdio.h>
#include "printf2log.h" /* COOJA specific: Transforms printf() to log_message() */
PROCESS(test_sensors_process, "Test sensors process"); PROCESS(test_sensors_process, "Test sensors process");
AUTOSTART_PROCESSES(&test_sensors_process); AUTOSTART_PROCESSES(&test_sensors_process);
@ -50,7 +49,7 @@ PROCESS_THREAD(test_sensors_process, ev, data)
pir_sensor.activate(); pir_sensor.activate();
vib_sensor.activate(); vib_sensor.activate();
radio_sensor.activate(); radio_sensor.activate();
while(1) { while(1) {
PROCESS_WAIT_EVENT(); PROCESS_WAIT_EVENT();

View file

@ -26,7 +26,7 @@
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
* SUCH DAMAGE. * SUCH DAMAGE.
* *
* $Id: testserial.c,v 1.1 2007/11/25 22:46:14 fros4943 Exp $ * $Id: testserial.c,v 1.2 2008/10/03 09:39:38 fros4943 Exp $
*/ */
#include "contiki.h" #include "contiki.h"
@ -34,7 +34,6 @@
#include "dev/rs232.h" #include "dev/rs232.h"
#include <stdio.h> #include <stdio.h>
#include "printf2log.h" /* COOJA specific: Transforms printf() to log_message() */
PROCESS(test_serial_process, "Serial test process"); PROCESS(test_serial_process, "Serial test process");
AUTOSTART_PROCESSES(&test_serial_process); AUTOSTART_PROCESSES(&test_serial_process);
@ -54,7 +53,7 @@ PROCESS_THREAD(test_serial_process, ev, data)
while(1) { while(1) {
PROCESS_WAIT_EVENT(); PROCESS_WAIT_EVENT();
if (etimer_expired(&et)) { if (etimer_expired(&et)) {
printf("Sending serial data now\n"); printf("Sending serial data now\n");
rs232_print("GNU's not Unix\n"); rs232_print("GNU's not Unix\n");

View file

@ -26,7 +26,7 @@
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
* SUCH DAMAGE. * SUCH DAMAGE.
* *
* $Id: testuaodv.c,v 1.1 2007/11/25 22:46:14 fros4943 Exp $ * $Id: testuaodv.c,v 1.2 2008/10/03 09:39:38 fros4943 Exp $
*/ */
#include <stdlib.h> #include <stdlib.h>
@ -38,7 +38,6 @@
#include "net/uaodv-rt.h" #include "net/uaodv-rt.h"
#include <stdio.h> #include <stdio.h>
#include "printf2log.h" /* COOJA specific: Transforms printf() to log_message() */
#define COOJA_PORT 1234 #define COOJA_PORT 1234
@ -87,7 +86,7 @@ PROCESS_THREAD(test_uaodv_process, ev, data)
if(ev == tcpip_event && uip_newdata()) { if(ev == tcpip_event && uip_newdata()) {
((char*) uip_appdata)[uip_datalen()] = 0; ((char*) uip_appdata)[uip_datalen()] = 0;
printf("data received from %d.%d.%d.%d: %s\n", printf("data received from %d.%d.%d.%d: %s\n",
uip_ipaddr_to_quad(&((struct uip_udpip_hdr *)&uip_buf[UIP_LLH_LEN])->srcipaddr), uip_ipaddr_to_quad(&((struct uip_udpip_hdr *)&uip_buf[UIP_LLH_LEN])->srcipaddr),
(char *)uip_appdata); (char *)uip_appdata);
leds_toggle(LEDS_ALL); leds_toggle(LEDS_ALL);
} }

View file

@ -26,7 +26,7 @@
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
* SUCH DAMAGE. * SUCH DAMAGE.
* *
* $Id: testuip.c,v 1.1 2007/11/25 22:46:14 fros4943 Exp $ * $Id: testuip.c,v 1.2 2008/10/03 09:39:38 fros4943 Exp $
*/ */
#include <stdlib.h> #include <stdlib.h>
@ -35,7 +35,6 @@
#include "dev/leds.h" #include "dev/leds.h"
#include <stdio.h> #include <stdio.h>
#include "printf2log.h" /* COOJA specific: Transforms printf() to log_message() */
#define COOJA_PORT 1234 #define COOJA_PORT 1234