/* System clock initialization */
ICSTRM = *(unsigned char*)0xFFAF; /* Initialize ICSTRM register from a non volatile memory */
ICSSC = *(unsigned char*)0xFFAE; /* Initialize ICSSC register from a non volatile memory */
/* ICSC1: CLKS=0,RDIV=7,IREFS=0,IRCLKEN=1,IREFSTEN=0 */
setReg8(ICSC1, 0x3A); /* Initialization of the ICS control register 1 */
/* ICSC2: BDIV=1,RANGE=1,HGO=0,LP=0,EREFS=0,ERCLKEN=1,EREFSTEN=0 */
setReg8(ICSC2, 0x62); /* Initialization of the ICS control register 2 */
/* GNGC: GNGPS7=0,GNGPS6=0,GNGPS5=0,GNGPS4=0,GNGPS3=0,GNGPS2=0,GNGPS1=0,GNGEN=0 */
setReg8(GNGC, 0x00);