* pinsel 0
*
* uart0: tx, rx
+ * p0.7: pwm2
*
*/
- PINSEL0=0x00000005;
+ PINSEL0=0x00008005;
/*
* pinsel 1
*
- * no special function yet!
+ * p0.30: eint3
*
*/
- PINSEL1=0x00000000;
+ PINSEL1=0x20000000;
/*
* pin select 2
void mmap_init(u8 memtype) {
+ if(memtype==MEMTYPE_RESERVED)
+ return;
+
MEMMAP=memtype;
}