error in hidboot.h while compiling

i am trying to compile the usb host mouse controller example , but i am getting an error in the hidboot.h.
any help?
================PROGRAM ====================
/*
Mouse Controller Example

Shows the output of a USB Mouse connected to
the Native USB port on an Arduino Due Board.

created 8 Oct 2012
by Cristian Maglie

This sample code is part of the public domain.
*/

// Require mouse control library
#include <MouseController.h>

// Initialize USB Controller
USBHost usb;

// Attach mouse controller to USB
MouseController mouse(usb);

// variables for mouse button states
boolean leftButton = false;
boolean middleButton = false;
boolean rightButton = false;

// This function intercepts mouse movements
void mouseMoved() {
Serial.print("Move: “);
Serial.print(mouse.getXChange());
Serial.print(”, ");
Serial.println(mouse.getYChange());
}

// This function intercepts mouse movements while a button is pressed
void mouseDragged() {
Serial.print("DRAG: “);
Serial.print(mouse.getXChange());
Serial.print(”, ");
Serial.println(mouse.getYChange());
}

// This function intercepts mouse button press
void mousePressed() {
Serial.print("Pressed: ");
if (mouse.getButton(LEFT_BUTTON)) {
Serial.print(“L”);
leftButton = true;
}
if (mouse.getButton(MIDDLE_BUTTON)) {
Serial.print(“M”);
middleButton = true;
}
if (mouse.getButton(RIGHT_BUTTON)) {
Serial.print(“R”);
Serial.println();
rightButton = true;
}
}

// This function intercepts mouse button release
void mouseReleased() {
Serial.print("Released: ");
if (!mouse.getButton(LEFT_BUTTON) && leftButton == true) {
Serial.print(“L”);
leftButton = false;
}
if (!mouse.getButton(MIDDLE_BUTTON) && middleButton == true) {
Serial.print(“M”);
middleButton = false;
}
if (!mouse.getButton(RIGHT_BUTTON) && rightButton == true) {
Serial.print(“R”);
rightButton = false;
}
Serial.println();
}

void setup()
{
Serial.begin(9600);
Serial.println(“Program started”);
delay(200);
}

void loop()
{
// Process USB tasks
usb.Task();
}
====================ERROR =======================
Arduino: 1.6.1 (Linux), Board: “Arduino Uno”

WARNING: library USBHost claims to run on [sam] architecture(s) and may be incompatible with your current board which runs on [avr] architecture(s).

In file included from /home/bonnie/workspace/arduino/libraries/USBHost/src/MouseController.h:22:0,
from MouseController.ino:16:
/home/bonnie/workspace/arduino/libraries/USBHost/src/hidboot.h: In member function ‘virtual void HIDBoot<BOOT_PROTOCOL>::EndpointXtract(uint32_t, uint32_t, uint32_t, uint32_t, const USB_ENDPOINT_DESCRIPTOR*)’:
/home/bonnie/workspace/arduino/libraries/USBHost/src/hidboot.h:474:62: error: ‘UOTGHS_HSTPIPCFG_PTYPE_INTRPT’ was not declared in this scope
pipe = UHD_Pipe_Alloc(bAddress, epInfo[index].deviceEpNum, UOTGHS_HSTPIPCFG_PTYPE_INTRPT, UOTGHS_HSTPIPCFG_PTOKEN_IN, epInfo[index].maxPktSize, 10, UOTGHS_HSTPIPCFG_PBK_1_BANK);
^
/home/bonnie/workspace/arduino/libraries/USBHost/src/hidboot.h:474:93: error: ‘UOTGHS_HSTPIPCFG_PTOKEN_IN’ was not declared in this scope
pipe = UHD_Pipe_Alloc(bAddress, epInfo[index].deviceEpNum, UOTGHS_HSTPIPCFG_PTYPE_INTRPT, UOTGHS_HSTPIPCFG_PTOKEN_IN, epInfo[index].maxPktSize, 10, UOTGHS_HSTPIPCFG_PBK_1_BANK);
^
/home/bonnie/workspace/arduino/libraries/USBHost/src/hidboot.h:474:151: error: ‘UOTGHS_HSTPIPCFG_PBK_1_BANK’ was not declared in this scope
pipe = UHD_Pipe_Alloc(bAddress, epInfo[index].deviceEpNum, UOTGHS_HSTPIPCFG_PTYPE_INTRPT, UOTGHS_HSTPIPCFG_PTOKEN_IN, epInfo[index].maxPktSize, 10, UOTGHS_HSTPIPCFG_PBK_1_BANK);
^
/home/bonnie/workspace/arduino/libraries/USBHost/src/hidboot.h:474:178: error: there are no arguments to ‘UHD_Pipe_Alloc’ that depend on a template parameter, so a declaration of ‘UHD_Pipe_Alloc’ must be available [-fpermissive]
pipe = UHD_Pipe_Alloc(bAddress, epInfo[index].deviceEpNum, UOTGHS_HSTPIPCFG_PTYPE_INTRPT, UOTGHS_HSTPIPCFG_PTOKEN_IN, epInfo[index].maxPktSize, 10, UOTGHS_HSTPIPCFG_PBK_1_BANK);
^
/home/bonnie/workspace/arduino/libraries/USBHost/src/hidboot.h:474:178: note: (if you use ‘-fpermissive’, G++ will accept your code, but allowing the use of an undeclared name is deprecated)
/home/bonnie/workspace/arduino/libraries/USBHost/src/hidboot.h: In member function ‘virtual uint32_t HIDBoot<BOOT_PROTOCOL>::Release()’:
/home/bonnie/workspace/arduino/libraries/USBHost/src/hidboot.h:500:54: error: there are no arguments to ‘UHD_Pipe_Free’ that depend on a template parameter, so a declaration of ‘UHD_Pipe_Free’ must be available [-fpermissive]
UHD_Pipe_Free(epInfo[epInterruptInIndex].hostPipeNum);
^
/home/bonnie/workspace/arduino/libraries/USBHost/src/hidboot.h: In instantiation of ‘uint32_t HIDBoot<BOOT_PROTOCOL>::Release() [with unsigned char BOOT_PROTOCOL = 2u; uint32_t = long unsigned int]’:
MouseController.ino:92:1: required from here
/home/bonnie/workspace/arduino/libraries/USBHost/src/hidboot.h:500:54: error: ‘UHD_Pipe_Free’ was not declared in this scope
/home/bonnie/workspace/arduino/libraries/USBHost/src/hidboot.h: In instantiation of ‘void HIDBoot<BOOT_PROTOCOL>::EndpointXtract(uint32_t, uint32_t, uint32_t, uint32_t, const USB_ENDPOINT_DESCRIPTOR*) [with unsigned char BOOT_PROTOCOL = 2u; uint32_t = long unsigned int]’:
MouseController.ino:92:1: required from here
/home/bonnie/workspace/arduino/libraries/USBHost/src/hidboot.h:474:178: error: ‘UHD_Pipe_Alloc’ was not declared in this scope
pipe = UHD_Pipe_Alloc(bAddress, epInfo[index].deviceEpNum, UOTGHS_HSTPIPCFG_PTYPE_INTRPT, UOTGHS_HSTPIPCFG_PTOKEN_IN, epInfo[index].maxPktSize, 10, UOTGHS_HSTPIPCFG_PBK_1_BANK);
^
Error compiling.

This report would have more information with
“Show verbose output during compilation”
enabled in File > Preferences.

Under the Tools menu which board do you have selected?

Arduino: 1.6.1 (Linux), Board: "Arduino Uno"

WARNING: library USBHost claims to run on [sam] architecture(s) and may be incompatible with your current board which runs on [avr] architecture(s).

The first error message is usually the one you should fix first.