00001 /*This file is prepared for Doxygen automatic documentation generation.*/ 00017 /* Copyright (c) 2009 Atmel Corporation. All rights reserved. 00018 * 00019 * Redistribution and use in source and binary forms, with or without 00020 * modification, are permitted provided that the following conditions are met: 00021 * 00022 * 1. Redistributions of source code must retain the above copyright notice, this 00023 * list of conditions and the following disclaimer. 00024 * 00025 * 2. Redistributions in binary form must reproduce the above copyright notice, 00026 * this list of conditions and the following disclaimer in the documentation 00027 * and/or other materials provided with the distribution. 00028 * 00029 * 3. The name of Atmel may not be used to endorse or promote products derived 00030 * from this software without specific prior written permission. 00031 * 00032 * 4. This software may only be redistributed and used in connection with an Atmel 00033 * AVR product. 00034 * 00035 * THIS SOFTWARE IS PROVIDED BY ATMEL "AS IS" AND ANY EXPRESS OR IMPLIED 00036 * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF 00037 * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT ARE 00038 * EXPRESSLY AND SPECIFICALLY DISCLAIMED. IN NO EVENT SHALL ATMEL BE LIABLE FOR 00039 * ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES 00040 * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; 00041 * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND 00042 * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 00043 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS 00044 * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE 00045 * 00046 */ 00047 00048 #ifndef _HOST_KEYBOARD_HID_TASK_H_ 00049 #define _HOST_KEYBOARD_HID_TASK_H_ 00050 00051 00052 //_____ I N C L U D E S ____________________________________________________ 00053 00054 #include "conf_usb.h" 00055 00056 #if USB_HOST_FEATURE == DISABLED 00057 #error host_keyboard_hid_task.h is #included although USB_HOST_FEATURE is disabled 00058 #endif 00059 00060 00061 #include "usb_host_task.h" 00062 #include "fs_com.h" 00063 00064 00065 //_____ M A C R O S ________________________________________________________ 00066 00067 #define Is_host_ms_configured() (ms_connected && !Is_host_suspended()) 00068 00069 00070 //_____ D E F I N I T I O N S ______________________________________________ 00071 00072 #define DEVICE_TO_HOST 0x01 00073 #define HOST_TO_DEVICE 0x02 00074 #define FULL_SYNC (DEVICE_TO_HOST | HOST_TO_DEVICE) 00075 00076 #define DIR_LOCAL_OUT_NAME "OUT" 00077 #define DIR_LOCAL_IN_NAME "IN" 00078 00079 #define DIR_USB_OUT_NAME "OUT" 00080 #define DIR_USB_IN_NAME "IN" 00081 00082 00083 //_____ D E C L A R A T I O N S ____________________________________________ 00084 00085 extern volatile Bool ms_connected; 00086 00087 extern void host_keyboard_hid_task_init(void); 00088 #ifdef FREERTOS_USED 00089 extern void host_keyboard_hid_task(void *pvParameters); 00090 #else 00091 extern void host_keyboard_hid_task(void); 00092 #endif 00093 extern void host_sof_action(void); 00094 00095 extern Bool host_mass_storage_task_sync_dir(Fs_index *dst_fs_idx, const char *dst_dir, Fs_index *src_fs_idx, const char *src_dir); 00096 extern Bool host_mass_storage_task_sync_drives(U8 sync_direction); 00097 00098 00099 #endif // _HOST_KEYBOARD_HID_TASK_H_