diff options
author | patacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3> | 2011-02-20 15:19:44 +0000 |
---|---|---|
committer | patacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3> | 2011-02-20 15:19:44 +0000 |
commit | 2d795267b97ca49c544ca4a38dbf3771d3cd4697 (patch) | |
tree | 84c0f2def09c2c2e7712cc448ed152cb3652ad4b /nuttx/arch/hc/src/m9s12/m9s12_start.S | |
parent | 2beb149e9bbba41c18ec8b3d83c2ba81c39b35a0 (diff) | |
download | px4-nuttx-2d795267b97ca49c544ca4a38dbf3771d3cd4697.tar.gz px4-nuttx-2d795267b97ca49c544ca4a38dbf3771d3cd4697.tar.bz2 px4-nuttx-2d795267b97ca49c544ca4a38dbf3771d3cd4697.zip |
Add m9s12 serial logic
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@3305 42af7a65-404d-4744-a932-0658087f49c3
Diffstat (limited to 'nuttx/arch/hc/src/m9s12/m9s12_start.S')
-rwxr-xr-x | nuttx/arch/hc/src/m9s12/m9s12_start.S | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/nuttx/arch/hc/src/m9s12/m9s12_start.S b/nuttx/arch/hc/src/m9s12/m9s12_start.S index b7585d75b..ad5a39c0d 100755 --- a/nuttx/arch/hc/src/m9s12/m9s12_start.S +++ b/nuttx/arch/hc/src/m9s12/m9s12_start.S @@ -40,6 +40,8 @@ #include <nuttx/config.h> +#include <arch/board/board.h> + #include "m9s12_internal.h" #include "m9s12_mmc.h" #include "m9s12_crg.h" @@ -118,8 +120,9 @@ /* Set the multipler and divider and enable the PLL */ bclr *HCS12_CRG_PLLCTL #CRG_PLLCTL_PLLON - ldab #15 + ldab #HCS12_SYNR_VALUE stab HCS12_CRG_SYNR + ldab #HCS12_REFDV_VALUE stab HCS12_CRG_REFDV bset *HCS12_CRG_PLLCTL #CRG_PLLCTL_PLLON |