Copyright (C) 2006 by Petr Kovacik petr_kovacik@gmail.com
*******************************************************************/
+
+#include <bth_config.h>
#ifdef BTH_LX
#include <types.h>
#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.*/
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)
*/