Fixed pull up/pull down being the wrong way around

This commit is contained in:
babbleberry 2024-04-22 09:54:15 +01:00
parent 4cd63a2716
commit 71d96e9044
12 changed files with 24 additions and 24 deletions

View file

@ -19,8 +19,8 @@ enum {
enum {
Pull_None = 0,
Pull_Down = 1, // Are down and up the right way around?
Pull_Up = 2
Pull_Down = 2,
Pull_Up = 1
};
void mmio_write(long reg, unsigned int val) { *(volatile unsigned int *)reg = val; }

View file

@ -19,8 +19,8 @@ enum {
enum {
Pull_None = 0,
Pull_Down = 1, // Are down and up the right way around?
Pull_Up = 2
Pull_Down = 2,
Pull_Up = 1
};
void mmio_write(long reg, unsigned int val) { *(volatile unsigned int *)reg = val; }

View file

@ -19,8 +19,8 @@ enum {
enum {
Pull_None = 0,
Pull_Down = 1, // Are down and up the right way around?
Pull_Up = 2
Pull_Down = 2,
Pull_Up = 1
};
void mmio_write(long reg, unsigned int val) { *(volatile unsigned int *)reg = val; }

View file

@ -19,8 +19,8 @@ enum {
enum {
Pull_None = 0,
Pull_Down = 1, // Are down and up the right way around?
Pull_Up = 2
Pull_Down = 2,
Pull_Up = 1
};
void mmio_write(long reg, unsigned int val) { *(volatile unsigned int *)reg = val; }

View file

@ -19,8 +19,8 @@ enum {
enum {
Pull_None = 0,
Pull_Down = 1, // Are down and up the right way around?
Pull_Up = 2
Pull_Down = 2,
Pull_Up = 1
};
void mmio_write(long reg, unsigned int val) { *(volatile unsigned int *)reg = val; }

View file

@ -19,8 +19,8 @@ enum {
enum {
Pull_None = 0,
Pull_Down = 1, // Are down and up the right way around?
Pull_Up = 2
Pull_Down = 2,
Pull_Up = 1
};
void mmio_write(long reg, unsigned int val) { *(volatile unsigned int *)reg = val; }

View file

@ -17,8 +17,8 @@ enum {
enum {
Pull_None = 0,
Pull_Down = 1, // Are down and up the right way around?
Pull_Up = 2
Pull_Down = 2,
Pull_Up = 1
};
void mmio_write(long reg, unsigned int val) { *(volatile unsigned int *)reg = val; }

View file

@ -18,8 +18,8 @@ enum {
enum {
Pull_None = 0,
Pull_Down = 1, // Are down and up the right way around?
Pull_Up = 2
Pull_Down = 2,
Pull_Up = 1
};
void mmio_write(long reg, unsigned int val) { *(volatile unsigned int *)reg = val; }

View file

@ -18,8 +18,8 @@ enum {
enum {
Pull_None = 0,
Pull_Down = 1, // Are down and up the right way around?
Pull_Up = 2
Pull_Down = 2,
Pull_Up = 1
};
void mmio_write(long reg, unsigned int val) { *(volatile unsigned int *)reg = val; }

View file

@ -18,8 +18,8 @@ enum {
enum {
Pull_None = 0,
Pull_Down = 1, // Are down and up the right way around?
Pull_Up = 2
Pull_Down = 2,
Pull_Up = 1
};
void mmio_write(long reg, unsigned int val) { *(volatile unsigned int *)reg = val; }

View file

@ -18,8 +18,8 @@ enum {
enum {
Pull_None = 0,
Pull_Down = 1, // Are down and up the right way around?
Pull_Up = 2
Pull_Down = 2,
Pull_Up = 1
};
void mmio_write(long reg, unsigned int val) { *(volatile unsigned int *)reg = val; }

View file

@ -19,8 +19,8 @@ enum {
enum {
Pull_None = 0,
Pull_Down = 1, // Are down and up the right way around?
Pull_Up = 2
Pull_Down = 2,
Pull_Up = 1
};
void mmio_write(long reg, unsigned int val) { *(volatile unsigned int *)reg = val; }