projects
/
pub
/
USBasp.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fix compile errors from the changes to the SerialStream and board Temperature drivers.
[pub/USBasp.git]
/
LUFA
/
Drivers
/
Board
/
Temperature.h
diff --git
a/LUFA/Drivers/Board/Temperature.h
b/LUFA/Drivers/Board/Temperature.h
index
fa86ccd
..
ef76ece
100644
(file)
--- a/
LUFA/Drivers/Board/Temperature.h
+++ b/
LUFA/Drivers/Board/Temperature.h
@@
-92,12
+92,15
@@
/** ADC channel MUX mask for the temperature sensor. */
#define TEMP_ADC_CHANNEL_MASK ADC_CHANNEL0
/** ADC channel MUX mask for the temperature sensor. */
#define TEMP_ADC_CHANNEL_MASK ADC_CHANNEL0
+
+ /** Size of the temperature sensor lookup table, in lookup values */
+ #define TEMP_TABLE_SIZE 120
/** Minimum returnable temperature from the \ref Temperature_GetTemperature() function. */
/** Minimum returnable temperature from the \ref Temperature_GetTemperature() function. */
- #define TEMP_MIN_TEMP TEMP_TABLE_OFFSET
+ #define TEMP_MIN_TEMP TEMP_TABLE_OFFSET
_DEGREES
/** Maximum returnable temperature from the \ref Temperature_GetTemperature() function. */
/** Maximum returnable temperature from the \ref Temperature_GetTemperature() function. */
- #define TEMP_MAX_TEMP ((TEMP_TABLE_SIZE - 1) + TEMP_TABLE_OFFSET)
+ #define TEMP_MAX_TEMP ((TEMP_TABLE_SIZE - 1) + TEMP_TABLE_OFFSET
_DEGREES
)
/* Inline Functions: */
/** Initialises the temperature sensor driver, including setting up the appropriate ADC channel.
/* Inline Functions: */
/** Initialises the temperature sensor driver, including setting up the appropriate ADC channel.