[PATCH 2/2] bsp/lm4f120: new BSP to support TI LM4F120 XL LaunchPad board

Sebastian Huber sebastian.huber at embedded-brains.de
Wed Aug 14 14:22:44 UTC 2013


On 2013-08-14 15:36, Karel Gardas wrote:
> diff --git a/c/src/lib/libbsp/arm/lm3s69xx/startup/bspstart.c b/c/src/lib/libbsp/arm/lm3s69xx/startup/bspstart.c
> index 442c713..170b54e 100644
> --- a/c/src/lib/libbsp/arm/lm3s69xx/startup/bspstart.c
> +++ b/c/src/lib/libbsp/arm/lm3s69xx/startup/bspstart.c
> @@ -19,32 +19,65 @@ static void init_main_osc(void)
>     volatile lm3s69xx_syscon *syscon = LM3S69XX_SYSCON;
>
>     uint32_t sysdiv_val = LM3S69XX_PLL_FREQUENCY / LM3S69XX_SYSTEM_CLOCK;
> +#if defined(LM3S69XX_MCU_LM3S6965) || defined(LM3S69XX_MCU_LM3S3749)
>     assert(sysdiv_val * LM3S69XX_SYSTEM_CLOCK == LM3S69XX_PLL_FREQUENCY);
> +#endif
>     assert((sysdiv_val >= 4) && (sysdiv_val <= 16));
>
>     uint32_t rcc = syscon->rcc;
> +  uint32_t rcc2 = syscon->rcc2;

Will this syscon->rcc2 stuff work on the other LM3SXXXX chips?

-- 
Sebastian Huber, embedded brains GmbH

Address : Dornierstr. 4, D-82178 Puchheim, Germany
Phone   : +49 89 189 47 41-16
Fax     : +49 89 189 47 41-09
E-Mail  : sebastian.huber at embedded-brains.de
PGP     : Public key available on request.

Diese Nachricht ist keine geschäftliche Mitteilung im Sinne des EHUG.



More information about the devel mailing list