[Nyx] Add init of temperature sensor

This commit is contained in:
ctcaer@gmail.com
2019-07-06 22:36:35 +03:00
parent 2bb0dba724
commit fed15a2f2f
2 changed files with 18 additions and 0 deletions

View File

@@ -25,6 +25,10 @@
#define TMP451_PCB_TEMP_REG 0x00
#define TMP451_SOC_TEMP_REG 0x01
#define TMP451_CONFIG_REG 0x09
#define TMP451_CNV_RATE_REG 0x0A
#define TMP451_SOC_TMP_DEC_REG 0x10
#define TMP451_PCB_TMP_DEC_REG 0x15
@@ -33,5 +37,6 @@
// Otherwise it's an integer oC.
u16 tmp451_get_soc_temp(bool integer);
u16 tmp451_get_pcb_temp(bool integer);
void tmp451_init();
#endif /* __TMP451_H_ */