lsm303d: dump I2C control registers in regdump

This commit is contained in:
Andrew Tridgell 2013-12-07 22:39:07 +11:00 committed by Lorenz Meier
parent 0349937a82
commit 895dc3a2bb
1 changed files with 2 additions and 0 deletions

View File

@ -1574,6 +1574,8 @@ LSM303D::print_registers()
const char *name;
} regmap[] = {
{ ADDR_WHO_AM_I, "WHO_AM_I" },
{ 0x02, "I2C_CONTROL1" },
{ 0x15, "I2C_CONTROL2" },
{ ADDR_STATUS_A, "STATUS_A" },
{ ADDR_STATUS_M, "STATUS_M" },
{ ADDR_CTRL_REG0, "CTRL_REG0" },