changed pull up pull down register mapping

This commit is contained in:
Nelson Ehling 2024-03-20 14:51:11 +01:00
parent 214704a867
commit 8277e48bc2
11 changed files with 22 additions and 22 deletions

View file

@ -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; }

View file

@ -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; }

View file

@ -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; }

View file

@ -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; }

View file

@ -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; }

View file

@ -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; }

View file

@ -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; }

View file

@ -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; }

View file

@ -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; }

View file

@ -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; }

View file

@ -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; }