diff options
author | patacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3> | 2012-07-05 14:58:16 +0000 |
---|---|---|
committer | patacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3> | 2012-07-05 14:58:16 +0000 |
commit | 6410d604c730db2e581993ff8854ec7a939a89d5 (patch) | |
tree | 2bc7fffb252a5f9653dcd05b2ff043614de92563 /nuttx/arch/arm/src/lpc43xx/lpc43_start.c | |
parent | d2a5c3d4f5b9899dc5de05c49ede4e616fae9a64 (diff) | |
download | px4-nuttx-6410d604c730db2e581993ff8854ec7a939a89d5.tar.gz px4-nuttx-6410d604c730db2e581993ff8854ec7a939a89d5.tar.bz2 px4-nuttx-6410d604c730db2e581993ff8854ec7a939a89d5.zip |
More LPC43 files in various states of work
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@4909 42af7a65-404d-4744-a932-0658087f49c3
Diffstat (limited to 'nuttx/arch/arm/src/lpc43xx/lpc43_start.c')
-rw-r--r-- | nuttx/arch/arm/src/lpc43xx/lpc43_start.c | 18 |
1 files changed, 16 insertions, 2 deletions
diff --git a/nuttx/arch/arm/src/lpc43xx/lpc43_start.c b/nuttx/arch/arm/src/lpc43xx/lpc43_start.c index 76f4f8ca3..972591019 100644 --- a/nuttx/arch/arm/src/lpc43xx/lpc43_start.c +++ b/nuttx/arch/arm/src/lpc43xx/lpc43_start.c @@ -50,7 +50,8 @@ # include "nvic.h" #endif -#include "lpc43_clockconfig.h" +#include "lpc43_rgu.h" +#include "lpc43_cgu.h" #include "lpc43_lowputc.h" /**************************************************************************** @@ -178,7 +179,20 @@ void __start(void) const uint32_t *src; uint32_t *dest; - /* Configure the uart so that we can get debug output as soon as possible */ + /* Reset as many of the LPC43 peripherals as possible. This is necessary + * because the LPC43 does not provide any way of performing a full system + * reset under debugger control. So, if CONFIG_DEBUG is set (indicating + * that a debugger is being used?), the the boot logic will call this + * function on all restarts. + */ + +#ifdef CONFIG_DEBUG + lpc43_softreset(); +#endif + + /* Configure the CGU clocking and the console uart so that we can get + * debug output as soon as possible. + */ lpc43_clockconfig(); lpc43_fpuconfig(); |