Made it somewhat more obvious that this is SLIP-only.
This commit is contained in:
parent
a0134ff35e
commit
7f3fcbd8e7
|
@ -42,15 +42,14 @@
|
||||||
|
|
||||||
#include "dev/slip.h"
|
#include "dev/slip.h"
|
||||||
|
|
||||||
|
#if WITH_SLIP
|
||||||
/*---------------------------------------------------------------------------*/
|
/*---------------------------------------------------------------------------*/
|
||||||
void
|
void
|
||||||
slip_arch_init(unsigned long ubr)
|
slip_arch_init(unsigned long ubr)
|
||||||
{
|
{
|
||||||
unsigned err;
|
unsigned err;
|
||||||
|
|
||||||
#if WITH_SLIP
|
|
||||||
err = ser_install(STATIC_DRIVER);
|
err = ser_install(STATIC_DRIVER);
|
||||||
#endif /* WITH_SLIP */
|
|
||||||
if(err == SER_ERR_OK) {
|
if(err == SER_ERR_OK) {
|
||||||
err = ser_open((struct ser_params *)config.slip);
|
err = ser_open((struct ser_params *)config.slip);
|
||||||
if(err == SER_ERR_OK)
|
if(err == SER_ERR_OK)
|
||||||
|
@ -82,3 +81,4 @@ slip_arch_poll(void)
|
||||||
slip_input_byte(c);
|
slip_input_byte(c);
|
||||||
}
|
}
|
||||||
/*---------------------------------------------------------------------------*/
|
/*---------------------------------------------------------------------------*/
|
||||||
|
#endif /* WITH_SLIP */
|
||||||
|
|
Loading…
Reference in a new issue