Pastebin launched a little side project called VERYVIRAL.com, check it out ;-) Want more features on Pastebin? Sign Up, it's FREE!
Guest

Untitled

By: a guest on Jul 28th, 2010  |  syntax: None  |  size: 0.61 KB  |  views: 37  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  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. }