Add LM4F120 pin configuration header file

git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@5705 42af7a65-404d-4744-a932-0658087f49c3
This commit is contained in:
patacongo 2013-03-05 00:31:43 +00:00
parent bd502e7a27
commit 14bc3a6345

View File

@ -63,12 +63,11 @@
#define OSCSRC_FREQUENCY XTAL_FREQUENCY
/* Use system divider = 4; this corresponds to a system clock frequency
* of (400 / 2) / 4 = 50MHz
* of (400 / 1) / 5 = 80MHz (Using RCC2 and DIV400).
*/
#define LM_SYSDIV 4
#define SYSCLK_FREQUENCY 50000000 /* 50MHz */
#warning "FIXME: LM4F120 should run at 80MHz"
#define LM_SYSDIV 5
#define SYSCLK_FREQUENCY 80000000 /* 80MHz */
/* Other RCC settings:
*
@ -87,7 +86,7 @@
* - Not using RCC2
*/
#define LM_RCC2_VALUE (SYSCON_RCC2_OSCSRC | SYSCON_RCC2_SYSDIV(LM_SYSDIV))
#define LM_RCC2_VALUE (SYSCON_RCC2_OSCSRC | SYSCON_RCC2_SYSDIV(LM_SYSDIV) | SYSCON_RCC2_DIV400)
/* LED definitions ******************************************************************/
/* The LM32F120 has a single RGB LED. There is only one visible LED which will vary