Beautified SLIP macros.

This commit is contained in:
Oliver Schmidt 2017-03-18 14:06:11 +01:00
parent 79855ff02d
commit a0134ff35e

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();
} }
} }
/*-----------------------------------------------------------------------------------*/ /*-----------------------------------------------------------------------------------*/