Beautified SLIP macros.

This commit is contained in:
Oliver Schmidt 2017-03-18 14:05:36 +01:00
parent 91beb8670f
commit 79855ff02d
3 changed files with 18 additions and 18 deletions

View File

@ -41,12 +41,12 @@
#if WITH_SLIP
#define DRIVER_PROCESS &slip_process,
#define SLIP_INIT slip_arch_init(0);
#define SLIP_POLL slip_arch_poll();
#define SLIP_INIT() slip_arch_init(0)
#define SLIP_POLL() slip_arch_poll()
#else /* WITH_SLIP */
#define DRIVER_PROCESS &ethernet_process,
#define SLIP_INIT
#define SLIP_POLL
#define SLIP_INIT()
#define SLIP_POLL()
#endif /* WITH_SLIP */
#if WITH_GUI
@ -100,7 +100,7 @@ main(void)
config_read("contiki.cfg");
SLIP_INIT
SLIP_INIT();
process_init();
procinit_init();
@ -114,7 +114,7 @@ main(void)
etimer_request_poll();
SLIP_POLL
SLIP_POLL();
clock_update();
}

View File

@ -41,12 +41,12 @@
#if WITH_SLIP
#define DRIVER_PROCESS &slip_process,
#define SLIP_INIT slip_arch_init(0);
#define SLIP_POLL slip_arch_poll();
#define SLIP_INIT() slip_arch_init(0)
#define SLIP_POLL() slip_arch_poll()
#else /* WITH_SLIP */
#define DRIVER_PROCESS &ethernet_process,
#define SLIP_INIT
#define SLIP_POLL
#define SLIP_INIT()
#define SLIP_POLL()
#endif /* WITH_SLIP */
#if WITH_GUI
@ -95,7 +95,7 @@ main(void)
config_read("contiki.cfg");
SLIP_INIT
SLIP_INIT();
process_init();
procinit_init();
@ -109,7 +109,7 @@ main(void)
etimer_request_poll();
SLIP_POLL
SLIP_POLL();
}
}
/*-----------------------------------------------------------------------------------*/

View File

@ -43,12 +43,12 @@
#if WITH_SLIP
#define DRIVER_PROCESS &slip_process,
#define SLIP_INIT slip_arch_init(0);
#define SLIP_POLL slip_arch_poll();
#define SLIP_INIT() slip_arch_init(0)
#define SLIP_POLL() slip_arch_poll()
#else /* WITH_SLIP */
#define DRIVER_PROCESS &ethernet_process,
#define SLIP_INIT
#define SLIP_POLL
#define SLIP_INIT()
#define SLIP_POLL()
#endif /* WITH_SLIP */
#if WITH_GUI
@ -97,7 +97,7 @@ main(void)
config_read("contiki.cfg");
SLIP_INIT
SLIP_INIT();
process_init();
procinit_init();
@ -111,7 +111,7 @@ main(void)
etimer_request_poll();
SLIP_POLL
SLIP_POLL();
}
}
/*-----------------------------------------------------------------------------------*/