feat(temperature_sensor): Add temperature sensor support on esp32p4

This commit is contained in:
Cao Sen Miao
2023-12-22 11:26:53 +08:00
parent 227c5d2cb7
commit 439bc719fe
24 changed files with 424 additions and 37 deletions

View File

@@ -7,5 +7,10 @@
#include "soc/temperature_sensor_periph.h"
const temperature_sensor_attribute_t temperature_sensor_attributes[TEMPERATURE_SENSOR_ATTR_RANGE_NUM] = {
/*Offset reg_val min max error */
{-2, 5, 50, 125, 3},
{-1, 7, 20, 100, 2},
{ 0, 15, -10, 80, 1},
{ 1, 11, -30, 50, 2},
{ 2, 10, -40, 20, 3},
};