mirror of
https://github.com/Rockbox/rockbox.git
synced 2025-11-15 16:12:28 -05:00
imx233: rework adc battery temperature sensor handling
Change-Id: I770729d7246b0ad8bc6fc5d6e45861325f6b790c
This commit is contained in:
parent
bc4631055f
commit
25feb00a64
4 changed files with 17 additions and 11 deletions
|
|
@ -22,15 +22,17 @@
|
|||
#define _ADC_IMX233_H_
|
||||
|
||||
#include "system.h"
|
||||
#include "adc.h"
|
||||
#include "adc-target.h"
|
||||
#include "powermgmt-target.h"
|
||||
#include "lradc-imx233.h"
|
||||
#include "adc-imx233.h"
|
||||
|
||||
/* Virtual channels */
|
||||
#define IMX233_ADC_BATTERY -1 /* Battery voltage (mV) */
|
||||
#define IMX233_ADC_DIE_TEMP -2 /* Die temperature (°C) */
|
||||
#define IMX233_ADC_VDDIO -3 /* VddIO voltage (mV) */
|
||||
#define IMX233_ADC_VDD5V -4 /* Vdd5V voltage (mV) */
|
||||
#ifdef IMX233_ADC_BATT_TEMP_SENSOR
|
||||
#ifdef IMX233_BATT_TEMP_SENSOR
|
||||
#define IMX233_ADC_BATT_TEMP -5 /* Battery temperature (°C) */
|
||||
#endif
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue