These are the examples provided for [[/users/frank26080115/libraries/LPC1700CMSIS_Lib/]] Note, the entire "program" is not compilable!

Committer:
frank26080115
Date:
Sun Mar 20 05:38:56 2011 +0000
Revision:
0:bf7b9fba3924

        

Who changed what in which revision?

UserRevisionLine numberNew contents of line
frank26080115 0:bf7b9fba3924 1 /*----------------------------------------------------------------------------
frank26080115 0:bf7b9fba3924 2 * U S B - K e r n e l
frank26080115 0:bf7b9fba3924 3 *----------------------------------------------------------------------------
frank26080115 0:bf7b9fba3924 4 * Name: MSCUSER.H
frank26080115 0:bf7b9fba3924 5 * Purpose: Mass Storage Class Custom User Definitions
frank26080115 0:bf7b9fba3924 6 * Version: V1.10
frank26080115 0:bf7b9fba3924 7 *----------------------------------------------------------------------------
frank26080115 0:bf7b9fba3924 8 * This software is supplied "AS IS" without any warranties, express,
frank26080115 0:bf7b9fba3924 9 * implied or statutory, including but not limited to the implied
frank26080115 0:bf7b9fba3924 10 * warranties of fitness for purpose, satisfactory quality and
frank26080115 0:bf7b9fba3924 11 * noninfringement. Keil extends you a royalty-free right to reproduce
frank26080115 0:bf7b9fba3924 12 * and distribute executable files created using this software for use
frank26080115 0:bf7b9fba3924 13 * on NXP Semiconductors LPC family microcontroller devices only. Nothing
frank26080115 0:bf7b9fba3924 14 * else gives you the right to use this software.
frank26080115 0:bf7b9fba3924 15 *
frank26080115 0:bf7b9fba3924 16 * Copyright (c) 2005-2009 Keil Software.
frank26080115 0:bf7b9fba3924 17 *---------------------------------------------------------------------------*/
frank26080115 0:bf7b9fba3924 18
frank26080115 0:bf7b9fba3924 19 #ifndef __MSCUSER_H__
frank26080115 0:bf7b9fba3924 20 #define __MSCUSER_H__
frank26080115 0:bf7b9fba3924 21
frank26080115 0:bf7b9fba3924 22
frank26080115 0:bf7b9fba3924 23 /* Mass Storage Memory Layout */
frank26080115 0:bf7b9fba3924 24 #if 0
frank26080115 0:bf7b9fba3924 25 #define MSC_MemorySize 16384
frank26080115 0:bf7b9fba3924 26 #endif
frank26080115 0:bf7b9fba3924 27 #if 1
frank26080115 0:bf7b9fba3924 28 #define MSC_MemorySize 8192
frank26080115 0:bf7b9fba3924 29 #endif
frank26080115 0:bf7b9fba3924 30 #define MSC_BlockSize 512
frank26080115 0:bf7b9fba3924 31 #define MSC_BlockCount (MSC_MemorySize / MSC_BlockSize)
frank26080115 0:bf7b9fba3924 32
frank26080115 0:bf7b9fba3924 33
frank26080115 0:bf7b9fba3924 34 /* Max In/Out Packet Size */
frank26080115 0:bf7b9fba3924 35 #define MSC_MAX_PACKET 64
frank26080115 0:bf7b9fba3924 36
frank26080115 0:bf7b9fba3924 37 /* MSC In/Out Endpoint Address */
frank26080115 0:bf7b9fba3924 38 #define MSC_EP_IN 0x82
frank26080115 0:bf7b9fba3924 39 #define MSC_EP_OUT 0x02
frank26080115 0:bf7b9fba3924 40
frank26080115 0:bf7b9fba3924 41 /* MSC Requests Callback Functions */
frank26080115 0:bf7b9fba3924 42 extern uint32_t MSC_Reset (void);
frank26080115 0:bf7b9fba3924 43 extern uint32_t MSC_GetMaxLUN (void);
frank26080115 0:bf7b9fba3924 44
frank26080115 0:bf7b9fba3924 45 /* MSC Bulk Callback Functions */
frank26080115 0:bf7b9fba3924 46 extern void MSC_GetCBW (void);
frank26080115 0:bf7b9fba3924 47 extern void MSC_SetCSW (void);
frank26080115 0:bf7b9fba3924 48 extern void MSC_BulkIn (void);
frank26080115 0:bf7b9fba3924 49 extern void MSC_BulkOut(void);
frank26080115 0:bf7b9fba3924 50
frank26080115 0:bf7b9fba3924 51
frank26080115 0:bf7b9fba3924 52 #endif /* __MSCUSER_H__ */