main.c (24b3c62931f131de8243230463f3536778ba1e63) main.c (f8fbdce0c5067e7e7edd3a29934b1f9b79c8ff2d)
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

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

95}
96static void using_921600_baud(void){
97 printf("Using 921600 baud.\n");
98 config.baudrate_main = 921600;
99}
100
101static void local_version_information_callback(uint8_t * packet){
102 printf("Local version information:\n");
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

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

95}
96static void using_921600_baud(void){
97 printf("Using 921600 baud.\n");
98 config.baudrate_main = 921600;
99}
100
101static void local_version_information_callback(uint8_t * packet){
102 printf("Local version information:\n");
103 uint16_t hci_version = READ_BT_16(packet, 4);
104 uint16_t hci_revision = READ_BT_16(packet, 6);
105 uint16_t lmp_version = READ_BT_16(packet, 8);
106 uint16_t manufacturer = READ_BT_16(packet, 10);
107 uint16_t lmp_subversion = READ_BT_16(packet, 12);
103 uint16_t hci_version = little_endian_read_16(packet, 4);
104 uint16_t hci_revision = little_endian_read_16(packet, 6);
105 uint16_t lmp_version = little_endian_read_16(packet, 8);
106 uint16_t manufacturer = little_endian_read_16(packet, 10);
107 uint16_t lmp_subversion = little_endian_read_16(packet, 12);
108 printf("- HCI Version 0x%04x\n", hci_version);
109 printf("- HCI Revision 0x%04x\n", hci_revision);
110 printf("- LMP Version 0x%04x\n", lmp_version);
111 printf("- LMP Revision 0x%04x\n", lmp_subversion);
112 printf("- Manufacturer 0x%04x\n", manufacturer);
113 switch (manufacturer){
114 case COMPANY_ID_CAMBRIDGE_SILICON_RADIO:
115 printf("Cambridge Silicon Radio CSR chipset.\n");

--- 58 unchanged lines hidden ---
108 printf("- HCI Version 0x%04x\n", hci_version);
109 printf("- HCI Revision 0x%04x\n", hci_revision);
110 printf("- LMP Version 0x%04x\n", lmp_version);
111 printf("- LMP Revision 0x%04x\n", lmp_subversion);
112 printf("- Manufacturer 0x%04x\n", manufacturer);
113 switch (manufacturer){
114 case COMPANY_ID_CAMBRIDGE_SILICON_RADIO:
115 printf("Cambridge Silicon Radio CSR chipset.\n");

--- 58 unchanged lines hidden ---