aboutsummaryrefslogtreecommitdiffstats
path: root/Demos/Host/Incomplete/BluetoothHost/BluetoothHost.c
diff options
context:
space:
mode:
authorDean Camera <dean@fourwalledcubicle.com>2010-04-18 12:10:30 +0000
committerDean Camera <dean@fourwalledcubicle.com>2010-04-18 12:10:30 +0000
commitfc8e4837a936bb1b4bd19bdd54660878b3efe02c (patch)
treebc0cdb4c4a2e151f0aac4eb92a63f8d229bb82ff /Demos/Host/Incomplete/BluetoothHost/BluetoothHost.c
parent55db57e1ede3c44a3b027cb442fa12e969b37f4b (diff)
downloadlufa-fc8e4837a936bb1b4bd19bdd54660878b3efe02c.tar.gz
lufa-fc8e4837a936bb1b4bd19bdd54660878b3efe02c.tar.bz2
lufa-fc8e4837a936bb1b4bd19bdd54660878b3efe02c.zip
Add const keyword to the demo function parameters where possible.
Diffstat (limited to 'Demos/Host/Incomplete/BluetoothHost/BluetoothHost.c')
-rw-r--r--Demos/Host/Incomplete/BluetoothHost/BluetoothHost.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/Demos/Host/Incomplete/BluetoothHost/BluetoothHost.c b/Demos/Host/Incomplete/BluetoothHost/BluetoothHost.c
index 07172940c..1107bc0c6 100644
--- a/Demos/Host/Incomplete/BluetoothHost/BluetoothHost.c
+++ b/Demos/Host/Incomplete/BluetoothHost/BluetoothHost.c
@@ -203,7 +203,7 @@ void Bluetooth_Host_Task(void)
*
* \return Boolean true to accept the connection, false to reject it
*/
-bool Bluetooth_ConnectionRequest(uint8_t* RemoteAddress)
+bool Bluetooth_ConnectionRequest(const uint8_t* RemoteAddress)
{
printf_P(PSTR("Connection Request from Device %02X:%02X:%02X:%02X:%02X:%02X\r\n"),
RemoteAddress[5], RemoteAddress[4],
@@ -246,7 +246,7 @@ void Bluetooth_DisconnectionComplete(void)
*
* \return Boolean true to accept the channel connection request, false to reject it
*/
-bool Bluetooth_ChannelConnectionRequest(uint16_t PSM)
+bool Bluetooth_ChannelConnectionRequest(const uint16_t PSM)
{
/* Always accept channel connection requests regardless of PSM */
return true;
@@ -259,7 +259,7 @@ bool Bluetooth_ChannelConnectionRequest(uint16_t PSM)
* \param[in] DataLen Length of the packet data, in bytes
* \param[in] Channel Bluetooth ACL data channel information structure for the packet's destination channel
*/
-void Bluetooth_PacketReceived(void* Data, uint16_t DataLen, Bluetooth_Channel_t* Channel)
+void Bluetooth_PacketReceived(void* Data, uint16_t DataLen, Bluetooth_Channel_t* const Channel)
{
switch (Channel->PSM)
{