[PATCH] LM3S3749 BSP

Eugeniy Meshcheryakov eugen at debian.org
Mon Apr 22 19:12:39 UTC 2013


Hello,

22 квітня 2013 о 09:16 +0200 Sebastian Huber написав(-ла):
> how similar are the LM3S3749 and lm3s69xx?  Is it possible to use
> one BSP directory with some conditional compilation for both?
To have the same functionality that is available now in lm3s6965 BSP
(only QEMU support) it is enough to to add support for using internal RC
oscillator (so it does not try to initialize PLL). The only supported
peripherial, UART, is almost the same in both MCUs.

After quick comparison of datasheets of two MCUs most modules present in
both chips look quite similar. SYSCON block is different enough to have 
separate copies for each MCU, but this should not be a big problem.
Oscillator control is also almost the same.

Interrupt map is also different. BTW lm3s69xx's irq.h now contains
exception numbers instead of interrupt numbers.

I can try to unify both BSPs, but I can test only with lm3s3749. How to
call the BSP directory? lm3s3xxx?

> 
> You can avoid hard coded values with BSP options, e.g.
> 
> RTEMS_BSPOPTS_SET([LPC24XX_OSCILLATOR_MAIN],[lpc23*],[3686400U])
> RTEMS_BSPOPTS_SET([LPC24XX_OSCILLATOR_MAIN],[*],[12000000U])
> RTEMS_BSPOPTS_HELP([LPC24XX_OSCILLATOR_MAIN],[main oscillator frequency in Hz])
> 
> RTEMS_BSPOPTS_SET([LPC24XX_OSCILLATOR_RTC],[*],[32768U])
> RTEMS_BSPOPTS_HELP([LPC24XX_OSCILLATOR_RTC],[RTC oscillator frequency in Hz])
> 
> RTEMS_BSPOPTS_SET([LPC24XX_CCLK],[lpc17xx_ea*],[96000000U])
> RTEMS_BSPOPTS_SET([LPC24XX_CCLK],[lpc23*],[58982400U])
> RTEMS_BSPOPTS_SET([LPC24XX_CCLK],[lpc24xx_plx800_*],[51612800U])
> RTEMS_BSPOPTS_SET([LPC24XX_CCLK],[*],[72000000U])
> RTEMS_BSPOPTS_HELP([LPC24XX_CCLK],[CPU clock in Hz])
I already do this, except for SSI speed. But run-time configuration is
not supported.

Regards,
Eugeniy Meshcheryakov
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 198 bytes
Desc: Digital signature
URL: <http://lists.rtems.org/pipermail/devel/attachments/20130422/dac93f33/attachment.bin>


More information about the devel mailing list