![](/media/cache/profiles/dc960c46c38bd16e953d97cdeefdbc68.50x50_q85.jpg)
Port of Keils USBCDC example, compiles ok. Gets stuck at init
Diff: common/type.h
- Revision:
- 0:0b777ff85deb
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/common/type.h Mon Jul 05 10:16:57 2010 +0000 @@ -0,0 +1,33 @@ +/***************************************************************************** + * type.h: Type definition Header file for NXP LPC17xx Family + * Microprocessors + * + * Copyright(C) 2009, NXP Semiconductor + * All rights reserved. + * + * History + * 2009.05.25 ver 1.00 Prelimnary version, first Release + * +******************************************************************************/ +#include <stdint.h> + +#ifndef __TYPE_H__ +#define __TYPE_H__ + +#ifndef NULL +#define NULL ((void *)0) +#endif + +#ifndef FALSE +#define FALSE (0) +#endif + +#ifndef TRUE +#define TRUE (1) +#endif + + +typedef enum {RESET = 0, SET = !RESET} FlagStatus, ITStatus; +typedef enum {DISABLE = 0, ENABLE = !DISABLE} FunctionalState; + +#endif /* __TYPE_H__ */