These are the examples provided for [[/users/frank26080115/libraries/LPC1700CMSIS_Lib/]] Note, the entire "program" is not compilable!
mscuser.h
00001 /*---------------------------------------------------------------------------- 00002 * U S B - K e r n e l 00003 *---------------------------------------------------------------------------- 00004 * Name: MSCUSER.H 00005 * Purpose: Mass Storage Class Custom User Definitions 00006 * Version: V1.10 00007 *---------------------------------------------------------------------------- 00008 * This software is supplied "AS IS" without any warranties, express, 00009 * implied or statutory, including but not limited to the implied 00010 * warranties of fitness for purpose, satisfactory quality and 00011 * noninfringement. Keil extends you a royalty-free right to reproduce 00012 * and distribute executable files created using this software for use 00013 * on NXP Semiconductors LPC family microcontroller devices only. Nothing 00014 * else gives you the right to use this software. 00015 * 00016 * Copyright (c) 2005-2009 Keil Software. 00017 *---------------------------------------------------------------------------*/ 00018 00019 #ifndef __MSCUSER_H__ 00020 #define __MSCUSER_H__ 00021 00022 00023 /* Mass Storage Memory Layout */ 00024 #if 0 00025 #define MSC_MemorySize 16384 00026 #endif 00027 #if 1 00028 #define MSC_MemorySize 8192 00029 #endif 00030 #define MSC_BlockSize 512 00031 #define MSC_BlockCount (MSC_MemorySize / MSC_BlockSize) 00032 00033 00034 /* Max In/Out Packet Size */ 00035 #define MSC_MAX_PACKET 64 00036 00037 /* MSC In/Out Endpoint Address */ 00038 #define MSC_EP_IN 0x82 00039 #define MSC_EP_OUT 0x02 00040 00041 /* MSC Requests Callback Functions */ 00042 extern uint32_t MSC_Reset (void); 00043 extern uint32_t MSC_GetMaxLUN (void); 00044 00045 /* MSC Bulk Callback Functions */ 00046 extern void MSC_GetCBW (void); 00047 extern void MSC_SetCSW (void); 00048 extern void MSC_BulkIn (void); 00049 extern void MSC_BulkOut(void); 00050 00051 00052 #endif /* __MSCUSER_H__ */
Generated on Tue Jul 12 2022 17:28:09 by 1.7.2