This commit converts the existing hcm5883l 3-axis magnetometer driver to use device tree for the I2C and GPIO selection. It also adds a basic sample application for this sensor, using the frdm-k64f development board to demonstrate how the interrupt GPIO pin and I2C bus can be selected. Signed-off-by: Kevin Townsend <kevin@ktownsend.com>
6 lines
101 B
Plaintext
6 lines
101 B
Plaintext
CONFIG_I2C=y
|
|
CONFIG_GPIO=y
|
|
CONFIG_SENSOR=y
|
|
CONFIG_HMC5883L=y
|
|
CONFIG_HMC5883L_TRIGGER_GLOBAL_THREAD=y
|