mirror of
https://github.com/isometimes/rpi4-osdev
synced 2024-11-22 02:00:40 +00:00
Fixed pull up/pull down being the wrong way around
This commit is contained in:
parent
4cd63a2716
commit
71d96e9044
12 changed files with 24 additions and 24 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; }
|
||||||
|
|
|
@ -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