Dependencies:   mbed

Embed: (wiki syntax)

« Back to documentation index

Show/hide line numbers usbhost_inc.h Source File

usbhost_inc.h

00001 /*
00002 **************************************************************************************************************
00003 *                                                 NXP USB Host Stack
00004 *
00005 *                                     (c) Copyright 2008, NXP SemiConductors
00006 *                                     (c) Copyright 2008, OnChip  Technologies LLC
00007 *                                                 All Rights Reserved
00008 *
00009 *                                                  www.nxp.com
00010 *                                               www.onchiptech.com
00011 *
00012 * File           : usbhost_inc.h
00013 * Programmer(s)  : Ravikanth.P
00014 * Version        :
00015 *
00016 **************************************************************************************************************
00017 */
00018 
00019 #ifndef  USBHOST_INC_H
00020 #define  USBHOST_INC_H
00021 
00022 /*
00023 **************************************************************************************************************
00024 *                                       INCLUDE HEADER FILES
00025 **************************************************************************************************************
00026 */
00027 
00028 #include  "usbhost_cpu.h"
00029 #include  "usbhost_err.h"
00030 //#include  "Uart/usbhost_uart.h"
00031 #include  "Host/usbhost_lpc17xx.h"
00032 #include  "MassStorage/usbhost_ms.h"
00033 #include  "Fat/usbhost_fat.h"
00034 //#include  "LPC17xx.h"
00035 #include  "mbed.h"
00036 
00037 #ifdef TARGET_LPC2368
00038 // [iva2k]
00039 
00040 // fix for bad define in LPC23xx.h
00041 #if LPC_USB_BASE != 0xFFE0C000
00042 #undef LPC_USB_BASE
00043 #define LPC_USB_BASE 0xFFE0C000
00044 #define LPC_USB ((LPC_USB_TypeDef *)LPC_USB_BASE)
00045 #endif
00046 
00047 #endif
00048 
00049 #ifdef TARGET_LPC2368
00050 static __INLINE void NVIC_SetPriority(IRQn_Type IRQn, uint32_t priority)
00051 {
00052   NVIC->VectPriority[(uint32_t)(IRQn)] = ((priority) & (1 << __NVIC_PRIO_BITS -1 ) ); 
00053 }
00054 #endif
00055 #endif