aboutsummaryrefslogtreecommitdiffstats
path: root/Demos/Host/Incomplete/BluetoothHost/Lib/ServiceDiscoveryProtocol.c
diff options
context:
space:
mode:
authorDean Camera <dean@fourwalledcubicle.com>2010-06-02 04:36:46 +0000
committerDean Camera <dean@fourwalledcubicle.com>2010-06-02 04:36:46 +0000
commitda51c1f9749842b65608d6505a41b05981416443 (patch)
tree7d8b908a2d5e2a76d9f1f048c7afdc3a8744dee7 /Demos/Host/Incomplete/BluetoothHost/Lib/ServiceDiscoveryProtocol.c
parentb98158bd50e95c65e20989d048ab42cc6de799c2 (diff)
downloadlufa-da51c1f9749842b65608d6505a41b05981416443.tar.gz
lufa-da51c1f9749842b65608d6505a41b05981416443.tar.bz2
lufa-da51c1f9749842b65608d6505a41b05981416443.zip
Add L2CAP service attribute table. Fix up ProtocolDescriptorList attributes, and add macros for used UUIDs to reduce typing and make the code easier to read.
Diffstat (limited to 'Demos/Host/Incomplete/BluetoothHost/Lib/ServiceDiscoveryProtocol.c')
-rw-r--r--Demos/Host/Incomplete/BluetoothHost/Lib/ServiceDiscoveryProtocol.c11
1 files changed, 3 insertions, 8 deletions
diff --git a/Demos/Host/Incomplete/BluetoothHost/Lib/ServiceDiscoveryProtocol.c b/Demos/Host/Incomplete/BluetoothHost/Lib/ServiceDiscoveryProtocol.c
index 6bb35f65d..c6b394819 100644
--- a/Demos/Host/Incomplete/BluetoothHost/Lib/ServiceDiscoveryProtocol.c
+++ b/Demos/Host/Incomplete/BluetoothHost/Lib/ServiceDiscoveryProtocol.c
@@ -36,14 +36,9 @@
*/
const ServiceTable_t SDP_Services_Table[] PROGMEM =
{
- { // 128-bit UUID for the SDP service
- .UUID = {BASE_80BIT_UUID, {0x00, 0x00, 0x00, 0x00, 0x00, 0x01}},
- .AttributeTable = SDP_Attribute_Table,
- },
- { // 128-bit UUID for the RFCOMM service
- .UUID = {BASE_80BIT_UUID, {0x00, 0x00, 0x00, 0x00, 0x00, 0x03}},
- .AttributeTable = RFCOMM_Attribute_Table,
- },
+ { .UUID = SDP_UUID , .AttributeTable = SDP_Attribute_Table },
+ { .UUID = RFCOMM_UUID, .AttributeTable = RFCOMM_Attribute_Table },
+ { .UUID = L2CAP_UUID , .AttributeTable = L2CAP_Attribute_Table },
};
/** Base UUID value common to all standardized Bluetooth services */