* pinsel 0
*
* uart0: tx, rx
+ * p0.7: pwm2
+ * p0.11: gpio -> audio (leave as is)
*
*/
- PINSEL0=0x00000005;
+ PINSEL0=0x00008005;
/*
* pinsel 1
*
- * no special function yet!
+ * p0.30: eint3
*
*/
- PINSEL1=0x00000000;
+ PINSEL1=0x20000000;
/*
* pin select 2
* out: p2.18 - p2.24 (+ pull high)
* in: p0.30, p0.{27,28}, p3.{20,21}, p0.22, p0.13
*
+ * audio:
+ *
+ * p0.11: out
+ *
*/
+ //IODIR0=(1<<11);
+
// nothing to do for inputs (default: 0x00000000)
IODIR2=((1<<18)|(1<<19)|(1<<20)|(1<<21)|(1<<22)|(1<<23)|(1<<24));
IOSET2=((1<<18)|(1<<19)|(1<<20)|(1<<21)|(1<<22)|(1<<23)|(1<<24));
void mmap_init(u8 memtype) {
+ if(memtype==MEMTYPE_RESERVED)
+ return;
+
MEMMAP=memtype;
}