1 // ---------------------------------------------------------
\r
2 // ATMEL Microcontroller Software Support - ROUSSET -
\r
3 // ---------------------------------------------------------
\r
4 // The software is delivered "AS IS" without warranty or
\r
5 // condition of any kind, either express, implied or
\r
6 // statutory. This includes without limitation any warranty
\r
7 // or condition with respect to merchantability or fitness
\r
8 // for any particular purpose, or against the infringements of
\r
9 // intellectual property rights of others.
\r
10 // ---------------------------------------------------------
\r
11 // User setup file for CSPY debugger.
\r
12 // ---------------------------------------------------------
\r
18 /*********************************************************************
\r
24 __message "------------------------------ execUserReset ---------------------------------";
\r
25 __message "-------------------------------Set PC Reset ----------------------------------";
\r
29 // peripheral reset RSTC_CR
\r
30 __writeMemory32(0xA5000004,0x400e1400,"Memory");
\r
36 __writeMemory32(0x400E0C04,((0x5Au << 24) | (((0xffffu << 8) & ((0x1) << 8))) | (((0xffu << 0) & ((0x0B) << 0))) ),"Memory");
\r
38 /*********************************************************************
\r
44 __message "------------------------------ execUserPreload ---------------------------------";
\r
46 __hwReset(0); //* Hardware Reset: CPU is automatically halted after the reset
\r
48 // peripheral reset RSTC_CR
\r
49 __writeMemory32(0xA5000004,0x400e1400,"Memory");
\r
51 __mac_i=__readMemory32(0x400E0940,"Memory");
\r
52 __message " ---------------------------------------- Chip ID 0x",__mac_i:%X;
\r