main.c (79530e37780a378f04c5958128dee5496f468f2f) main.c (98451c7b102094e15e0a72ca2f7098d91aed2017)
1/*
2 * Copyright (C) 2014 BlueKitchen GmbH
3 *
4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions
6 * are met:
7 *
8 * 1. Redistributions of source code must retain the above copyright

--- 288 unchanged lines hidden (view full) ---

297static void phase2(int status);
298int main(int argc, const char * argv[]){
299
300 /// GET STARTED with BTstack ///
301 btstack_memory_init();
302
303 // use logger: format HCI_DUMP_PACKETLOGGER, HCI_DUMP_BLUEZ or HCI_DUMP_STDOUT
304 const char * pklg_path = "/tmp/hci_dump.pklg";
1/*
2 * Copyright (C) 2014 BlueKitchen GmbH
3 *
4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions
6 * are met:
7 *
8 * 1. Redistributions of source code must retain the above copyright

--- 288 unchanged lines hidden (view full) ---

297static void phase2(int status);
298int main(int argc, const char * argv[]){
299
300 /// GET STARTED with BTstack ///
301 btstack_memory_init();
302
303 // use logger: format HCI_DUMP_PACKETLOGGER, HCI_DUMP_BLUEZ or HCI_DUMP_STDOUT
304 const char * pklg_path = "/tmp/hci_dump.pklg";
305 hci_dump_open(pklg_path, HCI_DUMP_PACKETLOGGER);
305 // hci_dump_open(pklg_path, HCI_DUMP_PACKETLOGGER);
306 printf("Packet Log: %s\n", pklg_path);
307
308 // setup run loop
309 btstack_run_loop_init(btstack_run_loop_posix_get_instance());
310
311 // pick serial port and configure uart block driver
312 transport_config.device_name = "/dev/serial1";
313

--- 141 unchanged lines hidden ---
306 printf("Packet Log: %s\n", pklg_path);
307
308 // setup run loop
309 btstack_run_loop_init(btstack_run_loop_posix_get_instance());
310
311 // pick serial port and configure uart block driver
312 transport_config.device_name = "/dev/serial1";
313

--- 141 unchanged lines hidden ---