mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-02 15:23:53 -06:00
tmp105: Create API for TMP105 temperature sensor.
* Define enum for TMP105 registers * Move tmp105_set() from I2C to TMP105 header * Document units and range of temperature as preconditions Reviewed-by: Andreas Färber <afaerber@suse.de> Signed-off-by: Alex Horn <alex.horn@cs.ox.ac.uk> Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
This commit is contained in:
parent
eac236ea7b
commit
2915efbfa8
3 changed files with 76 additions and 11 deletions
3
hw/i2c.h
3
hw/i2c.h
|
@ -73,9 +73,6 @@ void *wm8750_dac_buffer(void *opaque, int samples);
|
|||
void wm8750_dac_commit(void *opaque);
|
||||
void wm8750_set_bclk_in(void *opaque, int new_hz);
|
||||
|
||||
/* tmp105.c */
|
||||
void tmp105_set(I2CSlave *i2c, int temp);
|
||||
|
||||
/* lm832x.c */
|
||||
void lm832x_key_event(DeviceState *dev, int key, int state);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue