mirror of
https://github.com/bluekitchen/btstack.git
synced 2025-03-25 16:43:28 +00:00
cleaning up the tree
This commit is contained in:
parent
76a09ef37a
commit
7810600589
36
src/main.c
Normal file
36
src/main.c
Normal file
@ -0,0 +1,36 @@
|
|||||||
|
/*
|
||||||
|
* main.c
|
||||||
|
*
|
||||||
|
* Simple tests
|
||||||
|
*
|
||||||
|
* Created by Matthias Ringwald on 4/29/09.
|
||||||
|
*/
|
||||||
|
|
||||||
|
#include <stdio.h>
|
||||||
|
#include <stdlib.h>
|
||||||
|
|
||||||
|
#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;
|
||||||
|
}
|
Loading…
x
Reference in New Issue
Block a user