projects
/
my-code
/
arm.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
forgot to add the pwm code
[my-code/arm.git]
/
betty
/
system.c
diff --git
a/betty/system.c
b/betty/system.c
index
4204cdd
..
7554373
100644
(file)
--- a/
betty/system.c
+++ b/
betty/system.c
@@
-64,19
+64,20
@@
void pin_init(void) {
* pinsel 0
*
* uart0: tx, rx
* pinsel 0
*
* uart0: tx, rx
+ * p0.7: pwm2
*
*/
*
*/
- PINSEL0=0x0000
0
005;
+ PINSEL0=0x0000
8
005;
/*
* pinsel 1
*
/*
* pinsel 1
*
- *
no special function yet!
+ *
p0.30: eint3
*
*/
*
*/
- PINSEL1=0x
0
0000000;
+ PINSEL1=0x
2
0000000;
/*
* pin select 2
/*
* pin select 2
@@
-116,6
+117,9
@@
void pin_init(void) {
void mmap_init(u8 memtype) {
void mmap_init(u8 memtype) {
+ if(memtype==MEMTYPE_RESERVED)
+ return;
+
MEMMAP=memtype;
}
MEMMAP=memtype;
}