X-Git-Url: https://hackdaworld.org/gitweb/?p=my-code%2Farm.git;a=blobdiff_plain;f=betty%2Fsystem.c;h=755437358528a8ec953b3b08b50ab29bba5c5f04;hp=4204cddeca087f57a6359b5349c8d5a1ee5b5457;hb=9f1a71389dff6cddd11c4b9975a0d1b91806ee2d;hpb=ec21607f7dc421c6a474d93b90e9045ec465a222 diff --git a/betty/system.c b/betty/system.c index 4204cdd..7554373 100644 --- a/betty/system.c +++ b/betty/system.c @@ -64,19 +64,20 @@ void pin_init(void) { * 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 @@ -116,6 +117,9 @@ void pin_init(void) { void mmap_init(u8 memtype) { + if(memtype==MEMTYPE_RESERVED) + return; + MEMMAP=memtype; }