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

View file

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

View file

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