diff options
author | Dean Camera <dean@fourwalledcubicle.com> | 2010-06-03 08:33:01 +0000 |
---|---|---|
committer | Dean Camera <dean@fourwalledcubicle.com> | 2010-06-03 08:33:01 +0000 |
commit | a405a9bdf8338d947159317fba373fccd01fa0f3 (patch) | |
tree | 8cfc8ad00399d8ae3bfa2c3cb1cac5e679da231c /Demos/Host/Incomplete/BluetoothHost/Lib/SDPServices.c | |
parent | 480da5aab642eb7e5b87e604a55a91bf872b3607 (diff) | |
download | lufa-a405a9bdf8338d947159317fba373fccd01fa0f3.tar.gz lufa-a405a9bdf8338d947159317fba373fccd01fa0f3.tar.bz2 lufa-a405a9bdf8338d947159317fba373fccd01fa0f3.zip |
Extra protocol value in the RFCOMM protocol is the channel number, not the PSM - update typedef name and size.
Add delay to the Connection Request signal processing routine - without this, the host will not create the RFCOMM channel correctly. Need to investigate why this delay is needed.
Diffstat (limited to 'Demos/Host/Incomplete/BluetoothHost/Lib/SDPServices.c')
-rw-r--r-- | Demos/Host/Incomplete/BluetoothHost/Lib/SDPServices.c | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/Demos/Host/Incomplete/BluetoothHost/Lib/SDPServices.c b/Demos/Host/Incomplete/BluetoothHost/Lib/SDPServices.c index cf3267325..a06ebfede 100644 --- a/Demos/Host/Incomplete/BluetoothHost/Lib/SDPServices.c +++ b/Demos/Host/Incomplete/BluetoothHost/Lib/SDPServices.c @@ -56,15 +56,15 @@ const struct const struct
{
- uint8_t Header;
- uint8_t Size;
+ uint8_t Header;
+ uint8_t Size;
- ItemProtocol_t L2CAP;
- ItemProtocolPSM_t RFCOMM;
+ ItemProtocol_t L2CAP;
+ ItemProtocolChannel_t RFCOMM;
} PROGMEM SerialPort_Attribute_ProtocolDescriptor =
{
(SDP_DATATYPE_Sequence | SDP_DATASIZE_Variable8Bit),
- (sizeof(ItemProtocol_t) + sizeof(ItemProtocolPSM_t)),
+ (sizeof(ItemProtocol_t) + sizeof(ItemProtocolChannel_t)),
{
(SDP_DATATYPE_Sequence | SDP_DATASIZE_Variable8Bit),
sizeof(ItemUUID_t),
@@ -74,10 +74,10 @@ const struct },
{
(SDP_DATATYPE_Sequence | SDP_DATASIZE_Variable8Bit),
- (sizeof(ItemUUID_t) + sizeof(Item16Bit_t)),
+ (sizeof(ItemUUID_t) + sizeof(Item8Bit_t)),
{
{(SDP_DATATYPE_UUID | SDP_DATASIZE_128Bit), RFCOMM_UUID},
- {(SDP_DATATYPE_UnsignedInt | SDP_DATASIZE_16Bit), SWAPENDIAN_16(CHANNEL_PSM_RFCOMM)},
+ {(SDP_DATATYPE_UnsignedInt | SDP_DATASIZE_8Bit), 0x03},
},
},
};
|