Don't cast the line encoding baud rate to a uint16_t before performing the baud rate...
[pub/USBasp.git] / Demos / Host / Incomplete / BluetoothHost / BluetoothHost.h
index bd44807..8a2817c 100644 (file)
@@ -1,13 +1,13 @@
 /*\r
              LUFA Library\r
-     Copyright (C) Dean Camera, 2009.\r
+     Copyright (C) Dean Camera, 2010.\r
               \r
   dean [at] fourwalledcubicle [dot] com\r
       www.fourwalledcubicle.com\r
 */\r
 \r
 /*\r
-  Copyright 2009  Dean Camera (dean [at] fourwalledcubicle [dot] com)\r
+  Copyright 2010  Dean Camera (dean [at] fourwalledcubicle [dot] com)\r
 \r
   Permission to use, copy, modify, distribute, and sell this \r
   software and its documentation for any purpose is hereby granted\r
   this software.\r
 */\r
 \r
+/** \file\r
+ *\r
+ *  Header file for BluetoothHost.c.\r
+ */\r
+\r
 #ifndef _BLUETOOTH_HOST_H_\r
 #define _BLUETOOTH_HOST_H_\r
 \r
                #include <avr/wdt.h>\r
                #include <avr/pgmspace.h>\r
                #include <avr/power.h>\r
+               #include <avr/interrupt.h>\r
                #include <stdio.h>\r
 \r
+               #include "Lib/ServiceDiscoveryProtocol.h"\r
                #include "Lib/BluetoothStack.h"\r
 \r
                #include "DeviceDescriptor.h"\r
                /** LED mask for the library LED driver, to indicate that an error has occurred in the USB interface. */\r
                #define LEDMASK_USB_ERROR        (LEDS_LED1 | LEDS_LED3)\r
 \r
-               #define BLUETOOTH_DATA_IN_PIPE          1\r
-               #define BLUETOOTH_DATA_OUT_PIPE         2\r
-               #define BLUETOOTH_EVENTS_PIPE           3\r
-\r
        /* Task Definitions: */\r
-               void Bluetooth_Management_Task(void);\r
+               void Bluetooth_Host_Task(void);\r
                \r
        /* Event Handlers: */\r
                void EVENT_USB_Host_DeviceAttached(void);\r
                void EVENT_USB_Host_DeviceUnattached(void);\r
                void EVENT_USB_Host_DeviceEnumerationComplete(void);\r
-               void EVENT_USB_Host_HostError(uint8_t ErrorCode);\r
-               void EVENT_USB_Host_DeviceEnumerationFailed(uint8_t ErrorCode, uint8_t SubErrorCode);\r
+               void EVENT_USB_Host_HostError(const uint8_t ErrorCode);\r
+               void EVENT_USB_Host_DeviceEnumerationFailed(const uint8_t ErrorCode, const uint8_t SubErrorCode);\r
 \r
        /* Function Prototypes: */\r
                void SetupHardware(void);\r