mirror of
https://github.com/isometimes/rpi4-osdev
synced 2024-11-24 11:10:40 +00:00
changed pull up pull down register mapping
This commit is contained in:
parent
214704a867
commit
8277e48bc2
11 changed files with 22 additions and 22 deletions
|
@ -19,8 +19,8 @@ enum {
|
||||||
|
|
||||||
enum {
|
enum {
|
||||||
Pull_None = 0,
|
Pull_None = 0,
|
||||||
Pull_Down = 1, // Are down and up the right way around?
|
Pull_Down = 2,
|
||||||
Pull_Up = 2
|
Pull_Up = 1
|
||||||
};
|
};
|
||||||
|
|
||||||
void mmio_write(long reg, unsigned int val) { *(volatile unsigned int *)reg = val; }
|
void mmio_write(long reg, unsigned int val) { *(volatile unsigned int *)reg = val; }
|
||||||
|
|
|
@ -19,8 +19,8 @@ enum {
|
||||||
|
|
||||||
enum {
|
enum {
|
||||||
Pull_None = 0,
|
Pull_None = 0,
|
||||||
Pull_Down = 1, // Are down and up the right way around?
|
Pull_Down = 2,
|
||||||
Pull_Up = 2
|
Pull_Up = 1
|
||||||
};
|
};
|
||||||
|
|
||||||
void mmio_write(long reg, unsigned int val) { *(volatile unsigned int *)reg = val; }
|
void mmio_write(long reg, unsigned int val) { *(volatile unsigned int *)reg = val; }
|
||||||
|
|
|
@ -19,8 +19,8 @@ enum {
|
||||||
|
|
||||||
enum {
|
enum {
|
||||||
Pull_None = 0,
|
Pull_None = 0,
|
||||||
Pull_Down = 1, // Are down and up the right way around?
|
Pull_Down = 2,
|
||||||
Pull_Up = 2
|
Pull_Up = 1
|
||||||
};
|
};
|
||||||
|
|
||||||
void mmio_write(long reg, unsigned int val) { *(volatile unsigned int *)reg = val; }
|
void mmio_write(long reg, unsigned int val) { *(volatile unsigned int *)reg = val; }
|
||||||
|
|
|
@ -19,8 +19,8 @@ enum {
|
||||||
|
|
||||||
enum {
|
enum {
|
||||||
Pull_None = 0,
|
Pull_None = 0,
|
||||||
Pull_Down = 1, // Are down and up the right way around?
|
Pull_Down = 2,
|
||||||
Pull_Up = 2
|
Pull_Up = 1
|
||||||
};
|
};
|
||||||
|
|
||||||
void mmio_write(long reg, unsigned int val) { *(volatile unsigned int *)reg = val; }
|
void mmio_write(long reg, unsigned int val) { *(volatile unsigned int *)reg = val; }
|
||||||
|
|
|
@ -19,8 +19,8 @@ enum {
|
||||||
|
|
||||||
enum {
|
enum {
|
||||||
Pull_None = 0,
|
Pull_None = 0,
|
||||||
Pull_Down = 1, // Are down and up the right way around?
|
Pull_Down = 2,
|
||||||
Pull_Up = 2
|
Pull_Up = 1
|
||||||
};
|
};
|
||||||
|
|
||||||
void mmio_write(long reg, unsigned int val) { *(volatile unsigned int *)reg = val; }
|
void mmio_write(long reg, unsigned int val) { *(volatile unsigned int *)reg = val; }
|
||||||
|
|
|
@ -17,8 +17,8 @@ enum {
|
||||||
|
|
||||||
enum {
|
enum {
|
||||||
Pull_None = 0,
|
Pull_None = 0,
|
||||||
Pull_Down = 1, // Are down and up the right way around?
|
Pull_Down = 2,
|
||||||
Pull_Up = 2
|
Pull_Up = 1
|
||||||
};
|
};
|
||||||
|
|
||||||
void mmio_write(long reg, unsigned int val) { *(volatile unsigned int *)reg = val; }
|
void mmio_write(long reg, unsigned int val) { *(volatile unsigned int *)reg = val; }
|
||||||
|
|
|
@ -18,8 +18,8 @@ enum {
|
||||||
|
|
||||||
enum {
|
enum {
|
||||||
Pull_None = 0,
|
Pull_None = 0,
|
||||||
Pull_Down = 1, // Are down and up the right way around?
|
Pull_Down = 2,
|
||||||
Pull_Up = 2
|
Pull_Up = 1
|
||||||
};
|
};
|
||||||
|
|
||||||
void mmio_write(long reg, unsigned int val) { *(volatile unsigned int *)reg = val; }
|
void mmio_write(long reg, unsigned int val) { *(volatile unsigned int *)reg = val; }
|
||||||
|
|
|
@ -18,8 +18,8 @@ enum {
|
||||||
|
|
||||||
enum {
|
enum {
|
||||||
Pull_None = 0,
|
Pull_None = 0,
|
||||||
Pull_Down = 1, // Are down and up the right way around?
|
Pull_Down = 2,
|
||||||
Pull_Up = 2
|
Pull_Up = 1
|
||||||
};
|
};
|
||||||
|
|
||||||
void mmio_write(long reg, unsigned int val) { *(volatile unsigned int *)reg = val; }
|
void mmio_write(long reg, unsigned int val) { *(volatile unsigned int *)reg = val; }
|
||||||
|
|
|
@ -18,8 +18,8 @@ enum {
|
||||||
|
|
||||||
enum {
|
enum {
|
||||||
Pull_None = 0,
|
Pull_None = 0,
|
||||||
Pull_Down = 1, // Are down and up the right way around?
|
Pull_Down = 2,
|
||||||
Pull_Up = 2
|
Pull_Up = 1
|
||||||
};
|
};
|
||||||
|
|
||||||
void mmio_write(long reg, unsigned int val) { *(volatile unsigned int *)reg = val; }
|
void mmio_write(long reg, unsigned int val) { *(volatile unsigned int *)reg = val; }
|
||||||
|
|
|
@ -18,8 +18,8 @@ enum {
|
||||||
|
|
||||||
enum {
|
enum {
|
||||||
Pull_None = 0,
|
Pull_None = 0,
|
||||||
Pull_Down = 1, // Are down and up the right way around?
|
Pull_Down = 2,
|
||||||
Pull_Up = 2
|
Pull_Up = 1
|
||||||
};
|
};
|
||||||
|
|
||||||
void mmio_write(long reg, unsigned int val) { *(volatile unsigned int *)reg = val; }
|
void mmio_write(long reg, unsigned int val) { *(volatile unsigned int *)reg = val; }
|
||||||
|
|
|
@ -19,8 +19,8 @@ enum {
|
||||||
|
|
||||||
enum {
|
enum {
|
||||||
Pull_None = 0,
|
Pull_None = 0,
|
||||||
Pull_Down = 1, // Are down and up the right way around?
|
Pull_Down = 2,
|
||||||
Pull_Up = 2
|
Pull_Up = 1
|
||||||
};
|
};
|
||||||
|
|
||||||
void mmio_write(long reg, unsigned int val) { *(volatile unsigned int *)reg = val; }
|
void mmio_write(long reg, unsigned int val) { *(volatile unsigned int *)reg = val; }
|
||||||
|
|
Loading…
Reference in a new issue