Advertisement
Guest User

Untitled

a guest
Jul 28th, 2010
76
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.61 KB | None | 0 0
  1. $_TARGETNAME configure -event reset-init {
  2. soft_reset_halt
  3. # RSTC_CR : Reset peripherals
  4. # mww 0xfffffd00 0xa5000004
  5. # disable watchdog
  6. mww 0xfffffd44 0x00008000
  7. sleep 10
  8. # enable user reset
  9. mww 0xfffffd08 0xa5000001
  10. # CKGR_MOR : enable the main oscillator
  11. mww 0xfffffc20 0x00000701
  12. sleep 10
  13. # CKGR_PLLR: 96.1097 MHz
  14. mww 0xfffffc2c 0x10480a0e
  15. # mww 0xfffffc2c 0x00481c0e
  16. sleep 10
  17. # PMC_MCKR : MCK = PLL / 2 ~= 48 MHz
  18. mww 0xfffffc30 0x00000007
  19. sleep 10
  20. # MC_FMR: flash mode (FWS=1,FMCN=73)
  21. mww 0xffffff60 0x00320100
  22. # mww 0xffffff60 0x00490100
  23. sleep 100
  24. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement