FreeCalypso > hg > freecalypso-tools
diff target-utils/include/abbdefs.h @ 499:44a1de4264d8
target-utils: added support for secret register page 2 of Iota ABB
author | Mychaela Falconia <falcon@freecalypso.org> |
---|---|
date | Sat, 25 May 2019 22:20:34 +0000 |
parents | e7502631a0f9 |
children |
line wrap: on
line diff
--- a/target-utils/include/abbdefs.h Sat May 25 21:30:23 2019 +0000 +++ b/target-utils/include/abbdefs.h Sat May 25 22:20:34 2019 +0000 @@ -1,15 +1,16 @@ -/* lifted from OsmocomBB */ +/* lifted from OsmocomBB, then modified for page 2 support */ #ifndef _TWL3025_H #define _TWL3025_H -#define PAGE(n) (n << 7) +#define PAGE(n) (n << 6) enum twl3025_reg { VRPCCFG = PAGE(1) | 30, VRPCDEV = PAGE(0) | 30, VRPCMSK = PAGE(1) | 31, VRPCMSKABB = PAGE(1) | 29, VRPCSTS = PAGE(0) | 31, + VRPCAUX = PAGE(2) | 30, /* secret undocumented register! */ /* Monitoring ADC Registers */ MADCTRL = PAGE(0) | 13, MADCSTAT = PAGE(0) | 24,