From 7810600589a858014eb4bbdef79dafb0e15d11ef Mon Sep 17 00:00:00 2001 From: "matthias.ringwald" Date: Wed, 29 Apr 2009 21:57:15 +0000 Subject: [PATCH] cleaning up the tree --- src/main.c | 36 ++++++++++++++++++++++++++++++++++++ 1 file changed, 36 insertions(+) create mode 100644 src/main.c diff --git a/src/main.c b/src/main.c new file mode 100644 index 000000000..5ba160409 --- /dev/null +++ b/src/main.c @@ -0,0 +1,36 @@ +/* + * main.c + * + * Simple tests + * + * Created by Matthias Ringwald on 4/29/09. + */ + +#include +#include + +#include "hci.h" +#include "hci_h4_transport.h" + +int main (int argc, const char * argv[]) { + + // + if (argc <= 1){ + printf("HCI Daemon tester. Specify device name for Ericsson ROK 101 007\n"); + exit(1); + } + + // H4 UART + hci_transport_t * transport = &hci_h4_transport; + + // Ancient Ericsson ROK 101 007 (ca. 2001) + hci_uart_config_t config; + config.device_name = argv[1]; + config.baudrate = 57600; + config.flowcontrol = 1; + + // Go + hci_run(transport, &config); + + return 0; +}