LPCOpen Platform  v1.03
LPCOpen Platform for NXP LPC Microcontrollers
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
sys_config.h
Go to the documentation of this file.
1 /*
2  * @note
3  * Copyright(C) NXP Semiconductors, 2012
4  * All rights reserved.
5  *
6  * @par
7  * Software that is described herein is for illustrative purposes only
8  * which provides customers with programming information regarding the
9  * LPC products. This software is supplied "AS IS" without any warranties of
10  * any kind, and NXP Semiconductors and its licensor disclaim any and
11  * all warranties, express or implied, including all implied warranties of
12  * merchantability, fitness for a particular purpose and non-infringement of
13  * intellectual property rights. NXP Semiconductors assumes no responsibility
14  * or liability for the use of the software, conveys no license or rights under any
15  * patent, copyright, mask work right, or any other intellectual property rights in
16  * or to any products. NXP Semiconductors reserves the right to make changes
17  * in the software without notification. NXP Semiconductors also makes no
18  * representation or warranty that such application will be suitable for the
19  * specified use without further testing or modification.
20  *
21  * @par
22  * Permission to use, copy, modify, and distribute this software and its
23  * documentation is hereby granted, under NXP Semiconductors' and its
24  * licensor's relevant copyrights in the software, without fee, provided that it
25  * is used in conjunction with NXP Semiconductors microcontrollers. This
26  * copyright, permission, and disclaimer notice must appear in all copies of
27  * this code.
28  */
29 
30 #ifndef __SYS_CONFIG_H_
31 #define __SYS_CONFIG_H_
32 
37 /* Build for 43xx chip family */
38 #define CHIP_LPC43XX
39 
40 /* Build for RMII interface */
41 #define USE_RMII
42 
43 /* Un-comment DEBUG_ENABLE for IO support via the UART */
44 #define DEBUG_ENABLE
45 
46 /* Enable DEBUG_SEMIHOSTING along with DEBUG to enable IO support
47  via semihosting */
48 // #define DEBUG_SEMIHOSTING'
49 
50 /* Board UART used for debug output */
51 #define DEBUG_UART LPC_USART3
52 
53 /* Crystal frequency into device */
54 #define CRYSTAL_MAIN_FREQ_IN 12000000
55 
56 /* Crystal frequency into device for RTC/32K input */
57 #define CRYSTAL_32K_FREQ_IN 32768
58 
59 /* Frequency on external clock in pin */
60 #define EXTERNAL_CLKIN_FREQ_IN 0
61 
62 /* Default CPU clock frequency */
63 #define MAX_CLOCK_FREQ (204000000)
64 
65 /* Audio and USB default PLL rates (configured in SystemInit()) */
66 #define CGU_AUDIO_PLL_RATE (0)
67 #define CGU_USB_PLL_RATE (480000000)
68 
73 #endif /* __SYS_CONFIG_H_ */