X-Git-Url: https://rtime.felk.cvut.cz/gitweb/mirosot.git/blobdiff_plain/86608e251db3b85b5d9cec1d487261b11325edbe..ba111b946b45f8493ad0e2b10430c296f2f08cb8:/bluetooth/bth_inface.c diff --git a/bluetooth/bth_inface.c b/bluetooth/bth_inface.c index 2043104..c3ce8df 100644 --- a/bluetooth/bth_inface.c +++ b/bluetooth/bth_inface.c @@ -6,6 +6,8 @@ Copyright (C) 2006 by Petr Kovacik petr_kovacik@gmail.com *******************************************************************/ + +#include #ifdef BTH_LX #include @@ -18,7 +20,9 @@ #include "bth_inface.h" #include "bth_inface.h" +#ifndef CONFIG_BLUETOOTH_LINUX #include +#endif /* the number of communication structures i.e. how many channels can be used for communication. It alse specifies howmany independent couples of I/O buffers is here.*/ @@ -52,32 +56,6 @@ int bth_inface_t_isr(int chan) return (-1); } -/** - * fce write one char to out-buffer. Fce return a code of char. If a value is -1 its signal for error -*/ -int bth_inface_sendch(int val, int chan) -{ - if(bth_inface_que_put(&(bth_inface_chan_array[chan].bth_inface_que_out),val)<0) - {return (-1);}; - return (val); -}; - - -/** - * fce read one char of in-buffer. Fce return a code of char. If is a value -1 than is not new char -*/ -int bth_inface_recch(int chan) -{ - short val; - if((val=bth_inface_que_get(&(bth_inface_chan_array[chan].bth_inface_que_in)))>=0) - { - sci_rs232_sendch(val,sci_rs232_chan_default); - return val; - } - return (-1); -}; - - /** * init buffer for first chanal - 0 (nm. is index of array) */