]> rtime.felk.cvut.cz Git - mirosot.git/blobdiff - bluetooth/bth_inface.c
An unsucesfull attempt to clean bluetooth library and make it working.
[mirosot.git] / bluetooth / bth_inface.c
index 20431045934b14586974fe489d8c247f962c7f87..c3ce8df9959d557ca95cbe76b05b246841c1fd60 100644 (file)
@@ -6,6 +6,8 @@
   Copyright (C) 2006 by Petr Kovacik petr_kovacik@gmail.com
 
  *******************************************************************/
+
+#include <bth_config.h>
 #ifdef BTH_LX
 #include <types.h>
 
@@ -18,7 +20,9 @@
 #include "bth_inface.h"
 #include "bth_inface.h"
 
+#ifndef CONFIG_BLUETOOTH_LINUX
 #include <periph/sci_rs232.h>
+#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)
 */