sensors/hm0360: Enable HM0360 to work on GIGA.

This commit is contained in:
Kwabena W. Agyeman 2024-07-14 19:45:42 -07:00
parent 9937f49af1
commit 38d930ab65
4 changed files with 6 additions and 3 deletions

View File

@ -40,6 +40,8 @@
#define OMV_HM01B0_ENABLE (1) #define OMV_HM01B0_ENABLE (1)
#define OMV_HM0360_ENABLE (1) #define OMV_HM0360_ENABLE (1)
#define OMV_HM0360_XCLK_FREQ (24000000)
#define OMV_HM0360_PLL1_CONFIG (0x04)
// FIR sensor drivers configuration. // FIR sensor drivers configuration.
#define OMV_FIR_MLX90621_ENABLE (1) #define OMV_FIR_MLX90621_ENABLE (1)

View File

@ -37,6 +37,9 @@
#define OMV_HM01B0_ENABLE (1) #define OMV_HM01B0_ENABLE (1)
#define OMV_HM0360_ENABLE (1) #define OMV_HM0360_ENABLE (1)
// This sensor uses an internal oscillator on the Arduino Portenta H7.
#define OMV_HM0360_XCLK_FREQ (0)
#define OMV_HM0360_PLL1_CONFIG (0x08)
// FIR sensor drivers configuration. // FIR sensor drivers configuration.
#define OMV_FIR_MLX90621_ENABLE (1) #define OMV_FIR_MLX90621_ENABLE (1)

View File

@ -84,7 +84,7 @@ static const uint16_t default_regs[][2] = {
{0x3112, 0x00}, // PCLKO_polarity falling {0x3112, 0x00}, // PCLKO_polarity falling
{PLL1_CONFIG, 0x08}, // Core = 24MHz PCLKO = 24MHz I2C = 12MHz {PLL1_CONFIG, OMV_HM0360_PLL1_CONFIG}, // Core = 24MHz PCLKO = 24MHz I2C = 12MHz
{PLL2_CONFIG, 0x0A}, // MIPI pre-dev (default) {PLL2_CONFIG, 0x0A}, // MIPI pre-dev (default)
{PLL3_CONFIG, 0x77}, // PMU/MIPI pre-dev (default) {PLL3_CONFIG, 0x77}, // PMU/MIPI pre-dev (default)

View File

@ -10,7 +10,5 @@
*/ */
#ifndef __HM0360_H__ #ifndef __HM0360_H__
#define __HM0360_H__ #define __HM0360_H__
// This sensor uses an internal oscillator.
#define OMV_HM0360_XCLK_FREQ (0)
int hm0360_init(sensor_t *sensor); int hm0360_init(sensor_t *sensor);
#endif // __HM0360_H__ #endif // __HM0360_H__