removed refences to printf2log.h
This commit is contained in:
parent
2fb6410e4d
commit
08502eb344
@ -28,14 +28,13 @@
|
||||
*
|
||||
* 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 "printf2log.h"
|
||||
#include <stdio.h>
|
||||
|
||||
#include <stdio.h> /* For printf() */
|
||||
/*---------------------------------------------------------------------------*/
|
||||
PROCESS(hello_world_process, "Hello world process");
|
||||
AUTOSTART_PROCESSES(&hello_world_process);
|
||||
|
@ -26,14 +26,13 @@
|
||||
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
|
||||
* 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 "dev/button-sensor.h"
|
||||
|
||||
#include <stdio.h>
|
||||
#include "printf2log.h" /* COOJA specific: Transforms printf() to log_message() */
|
||||
|
||||
PROCESS(test_button_process, "Test button process");
|
||||
AUTOSTART_PROCESSES(&test_button_process);
|
||||
|
@ -26,7 +26,7 @@
|
||||
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
|
||||
* 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"
|
||||
@ -35,7 +35,6 @@
|
||||
#include "cfs/cfs.h"
|
||||
|
||||
#include <stdio.h>
|
||||
#include "printf2log.h" /* COOJA specific: Transforms printf() to log_message() */
|
||||
|
||||
PROCESS(test_cfs_process, "Test CFS process");
|
||||
AUTOSTART_PROCESSES(&test_cfs_process);
|
||||
@ -46,7 +45,7 @@ PROCESS_THREAD(test_cfs_process, ev, data)
|
||||
static int fd;
|
||||
static u16_t counter;
|
||||
static char buf[30];
|
||||
|
||||
|
||||
PROCESS_BEGIN();
|
||||
|
||||
printf("Starting CFS test process\n");
|
||||
@ -63,7 +62,7 @@ PROCESS_THREAD(test_cfs_process, ev, data)
|
||||
cfs_close(fd);
|
||||
printf("Wrote to filesystem: '%s'\n", buf);
|
||||
counter++;
|
||||
|
||||
|
||||
etimer_set(&et, CLOCK_SECOND);
|
||||
PROCESS_WAIT_EVENT_UNTIL(etimer_expired(&et));
|
||||
|
||||
|
@ -26,14 +26,13 @@
|
||||
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
|
||||
* 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 "net/rime/ctimer.h"
|
||||
|
||||
#include <stdio.h>
|
||||
#include "printf2log.h" /* COOJA specific: Transforms printf() to log_message() */
|
||||
|
||||
PROCESS(test_ctimer_process, "Callback timer test process");
|
||||
AUTOSTART_PROCESSES(&test_ctimer_process);
|
||||
|
@ -26,14 +26,13 @@
|
||||
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
|
||||
* 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 "sys/etimer.h"
|
||||
|
||||
#include <stdio.h>
|
||||
#include "printf2log.h" /* COOJA specific: Transforms printf() to log_message() */
|
||||
|
||||
PROCESS(test_etimer_process, "Event timer test process");
|
||||
AUTOSTART_PROCESSES(&test_etimer_process);
|
||||
|
@ -26,7 +26,7 @@
|
||||
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
|
||||
* 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"
|
||||
@ -36,7 +36,6 @@
|
||||
#include "dev/radio-sensor.h"
|
||||
|
||||
#include <stdio.h>
|
||||
#include "printf2log.h" /* COOJA specific: Transforms printf() to log_message() */
|
||||
|
||||
PROCESS(test_sensors_process, "Test sensors process");
|
||||
AUTOSTART_PROCESSES(&test_sensors_process);
|
||||
@ -50,7 +49,7 @@ PROCESS_THREAD(test_sensors_process, ev, data)
|
||||
pir_sensor.activate();
|
||||
vib_sensor.activate();
|
||||
radio_sensor.activate();
|
||||
|
||||
|
||||
while(1) {
|
||||
PROCESS_WAIT_EVENT();
|
||||
|
||||
|
@ -26,7 +26,7 @@
|
||||
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
|
||||
* 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"
|
||||
@ -34,7 +34,6 @@
|
||||
#include "dev/rs232.h"
|
||||
|
||||
#include <stdio.h>
|
||||
#include "printf2log.h" /* COOJA specific: Transforms printf() to log_message() */
|
||||
|
||||
PROCESS(test_serial_process, "Serial test process");
|
||||
AUTOSTART_PROCESSES(&test_serial_process);
|
||||
@ -54,7 +53,7 @@ PROCESS_THREAD(test_serial_process, ev, data)
|
||||
|
||||
while(1) {
|
||||
PROCESS_WAIT_EVENT();
|
||||
|
||||
|
||||
if (etimer_expired(&et)) {
|
||||
printf("Sending serial data now\n");
|
||||
rs232_print("GNU's not Unix\n");
|
||||
|
@ -26,7 +26,7 @@
|
||||
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
|
||||
* 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>
|
||||
@ -38,7 +38,6 @@
|
||||
#include "net/uaodv-rt.h"
|
||||
|
||||
#include <stdio.h>
|
||||
#include "printf2log.h" /* COOJA specific: Transforms printf() to log_message() */
|
||||
|
||||
#define COOJA_PORT 1234
|
||||
|
||||
@ -87,7 +86,7 @@ PROCESS_THREAD(test_uaodv_process, ev, data)
|
||||
if(ev == tcpip_event && uip_newdata()) {
|
||||
((char*) uip_appdata)[uip_datalen()] = 0;
|
||||
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);
|
||||
leds_toggle(LEDS_ALL);
|
||||
}
|
||||
|
@ -26,7 +26,7 @@
|
||||
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
|
||||
* 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>
|
||||
@ -35,7 +35,6 @@
|
||||
#include "dev/leds.h"
|
||||
|
||||
#include <stdio.h>
|
||||
#include "printf2log.h" /* COOJA specific: Transforms printf() to log_message() */
|
||||
|
||||
#define COOJA_PORT 1234
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user